HSL(198, 40%, 39%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

7000K

CSS Class

bg-[hsl(198,40%,39%)]

Color Conversions

Format Value CSS Usage
HSL hsl(198, 40%, 39%) color: hsl(198, 40%, 39%)
HEX #3C738B color: #3C738B
RGB rgb(60, 115, 139) color: rgb(60, 115, 139)
CMYK cmyk(57%, 17%, 0%, 45%)
HSV hsv(198, 57%, 55%)
HWB hwb(198 24% 45%) color: hwb(198 24% 45%)
OKLCH oklch(0.5279 0.0693 228.54) color: oklch(0.5279 0.0693 228.54)
Lab lab(45.75 -10.87 -18.66) color: lab(45.75 -10.87 -18.66)
LCH lch(45.75 21.6 239.78) color: lch(45.75 21.6 239.78)

Color Theory

Complementary

Triadic

Analogous

Tetradic (Square)

Split-Complementary

Accessibility (WCAG)

White text on color

Black text on color

Color on white bg

Colored text

Contrast Ratios

vs White 5.23:1
vs Black 4.02:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#545485 — rgb(84, 84, 133)

Deuteranopia (Green-blind)

#514D84 — rgb(81, 77, 132)

Tritanopia (Blue-blind)

#3F8180 — rgb(63, 129, 128)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(198, 40%, 39%);

text

color: hsl(198, 40%, 39%);

border

border: 2px solid hsl(198, 40%, 39%);

gradient light

background: linear-gradient(to right, hsl(198, 40%, 59%), hsl(198, 40%, 39%));

gradient dark

background: linear-gradient(to right, hsl(198, 40%, 39%), hsl(198, 40%, 19%))

hex

background-color: #3C738B;

tailwind

bg-[hsl(198,40%,39%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(198, 40%, 39%, 0.4);

css variable

--color-primary: hsl(198, 40%, 39%);

Related Colors

Use Cases for Blue

Corporate branding Trust signals Tech products Social media Primary buttons

Frequently Asked Questions

What are all the color codes for HSL(198, 40%, 39%)?

HEX: #3C738B | RGB: rgb(60, 115, 139) | CMYK: 57%, 17%, 0%, 45% | HSV: 198°, 57%, 55%. Copy any format from the conversion table above.

What colors go well with #3C738B?

The complementary color is HSL(18, 40%, 39%). For a triadic harmony, use hues 198°, 318°, and 78°. For analogous combinations, try hues 168° and 228°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(198, 40%, 39%) in CSS?

As HSL: color: hsl(198, 40%, 39%); — As HEX: color: #3C738B; — As RGB: color: rgb(60, 115, 139); — Tailwind CSS: bg-[hsl(198,40%,39%)] — CSS variable: --color-primary: hsl(198, 40%, 39%);