HSL(210, 100%, 40%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

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

Color Conversions

Format Value CSS Usage
HSL hsl(210, 100%, 40%) color: hsl(210, 100%, 40%)
HEX #0066CC color: #0066CC
RGB rgb(0, 102, 204) color: rgb(0, 102, 204)
CMYK cmyk(100%, 50%, 0%, 20%)
HSV hsv(210, 100%, 80%)
HWB hwb(210 0% 20%) color: hwb(210 0% 20%)
OKLCH oklch(0.522 0.1771 255.83) color: oklch(0.522 0.1771 255.83)
Lab lab(44.03 15.27 -59.52) color: lab(44.03 15.27 -59.52)
LCH lch(44.03 61.45 284.39) color: lch(44.03 61.45 284.39)

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.57:1
vs Black 3.77: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)

#2C2DB3 — rgb(44, 45, 179)

Deuteranopia (Green-blind)

#261FAD — rgb(38, 31, 173)

Tritanopia (Blue-blind)

#05A09C — rgb(5, 160, 156)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

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

text

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

border

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

gradient light

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

gradient dark

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

hex

background-color: #0066CC;

tailwind

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

box shadow

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

css variable

--color-primary: hsl(210, 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(210, 100%, 40%)?

HEX: #0066CC | RGB: rgb(0, 102, 204) | CMYK: 100%, 50%, 0%, 20% | HSV: 210°, 100%, 80%. Copy any format from the conversion table above.

What colors go well with #0066CC?

The complementary color is HSL(30, 100%, 40%). For a triadic harmony, use hues 210°, 330°, and 90°. For analogous combinations, try hues 180° and 240°. See the Color Harmony section above for complete palettes with previews.

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

As HSL: color: hsl(210, 100%, 40%); — As HEX: color: #0066CC; — As RGB: color: rgb(0, 102, 204); — Tailwind CSS: bg-[hsl(210,100%,40%)] — CSS variable: --color-primary: hsl(210, 100%, 40%);