HSL(212, 60%, 29%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(212,60%,29%)]

Color Conversions

Format Value CSS Usage
HSL hsl(212, 60%, 29%) color: hsl(212, 60%, 29%)
HEX #1E4776 color: #1E4776
RGB rgb(30, 71, 118) color: rgb(30, 71, 118)
CMYK cmyk(75%, 40%, 0%, 54%)
HSV hsv(212, 75%, 46%)
HWB hwb(212 12% 54%) color: hwb(212 12% 54%)
OKLCH oklch(0.3939 0.0922 253.76) color: oklch(0.3939 0.0922 253.76)
Lab lab(29.64 3 -31.06) color: lab(29.64 3 -31.06)
LCH lch(29.64 31.2 275.52) color: lch(29.64 31.2 275.52)

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 9.47:1
vs Black 2.22:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: FAIL ✗

AAA Normal (7:1)

on White: PASS ✓

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#30306B — rgb(48, 48, 107)

Deuteranopia (Green-blind)

#2D2A68 — rgb(45, 42, 104)

Tritanopia (Blue-blind)

#206260 — rgb(32, 98, 96)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(212, 60%, 29%);

text

color: hsl(212, 60%, 29%);

border

border: 2px solid hsl(212, 60%, 29%);

gradient light

background: linear-gradient(to right, hsl(212, 60%, 49%), hsl(212, 60%, 29%));

gradient dark

background: linear-gradient(to right, hsl(212, 60%, 29%), hsl(212, 60%, 9%))

hex

background-color: #1E4776;

tailwind

bg-[hsl(212,60%,29%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(212, 60%, 29%, 0.4);

css variable

--color-primary: hsl(212, 60%, 29%);

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(212, 60%, 29%)?

HEX: #1E4776 | RGB: rgb(30, 71, 118) | CMYK: 75%, 40%, 0%, 54% | HSV: 212°, 75%, 46%. Copy any format from the conversion table above.

What colors go well with #1E4776?

The complementary color is HSL(32, 60%, 29%). For a triadic harmony, use hues 212°, 332°, and 92°. For analogous combinations, try hues 182° and 242°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(212, 60%, 29%) in CSS?

As HSL: color: hsl(212, 60%, 29%); — As HEX: color: #1E4776; — As RGB: color: rgb(30, 71, 118); — Tailwind CSS: bg-[hsl(212,60%,29%)] — CSS variable: --color-primary: hsl(212, 60%, 29%);