HSL(208, 100%, 40%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

7000K

CSS Class

bg-[hsl(208,100%,40%)]

Color Conversions

Format Value CSS Usage
HSL hsl(208, 100%, 40%) color: hsl(208, 100%, 40%)
HEX #006DCC color: #006DCC
RGB rgb(0, 109, 204) color: rgb(0, 109, 204)
CMYK cmyk(100%, 47%, 0%, 20%)
HSV hsv(208, 100%, 80%)
HWB hwb(208 0% 20%) color: hwb(208 0% 20%)
OKLCH oklch(0.5374 0.1689 253.6) color: oklch(0.5374 0.1689 253.6)
Lab lab(46.04 10.76 -56.28) color: lab(46.04 10.76 -56.28)
LCH lch(46.04 57.3 280.82) color: lch(46.04 57.3 280.82)

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.17:1
vs Black 4.06: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)

#2F30B5 — rgb(47, 48, 181)

Deuteranopia (Green-blind)

#2921B0 — rgb(41, 33, 176)

Tritanopia (Blue-blind)

#05A39F — rgb(5, 163, 159)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(208, 100%, 40%);

text

color: hsl(208, 100%, 40%);

border

border: 2px solid hsl(208, 100%, 40%);

gradient light

background: linear-gradient(to right, hsl(208, 100%, 60%), hsl(208, 100%, 40%));

gradient dark

background: linear-gradient(to right, hsl(208, 100%, 40%), hsl(208, 100%, 20%))

hex

background-color: #006DCC;

tailwind

bg-[hsl(208,100%,40%)]

box shadow

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

css variable

--color-primary: hsl(208, 100%, 40%);

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(208, 100%, 40%)?

HEX: #006DCC | RGB: rgb(0, 109, 204) | CMYK: 100%, 47%, 0%, 20% | HSV: 208°, 100%, 80%. Copy any format from the conversion table above.

What colors go well with #006DCC?

The complementary color is HSL(28, 100%, 40%). For a triadic harmony, use hues 208°, 328°, and 88°. For analogous combinations, try hues 178° and 238°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(208, 100%, 40%) in CSS?

As HSL: color: hsl(208, 100%, 40%); — As HEX: color: #006DCC; — As RGB: color: rgb(0, 109, 204); — Tailwind CSS: bg-[hsl(208,100%,40%)] — CSS variable: --color-primary: hsl(208, 100%, 40%);