HSL(211, 71%, 51%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(211,71%,51%)]

Color Conversions

Format Value CSS Usage
HSL hsl(211, 71%, 51%) color: hsl(211, 71%, 51%)
HEX #297FDB color: #297FDB
RGB rgb(41, 127, 219) color: rgb(41, 127, 219)
CMYK cmyk(81%, 42%, 0%, 14%)
HSV hsv(211, 81%, 86%)
HWB hwb(211 16% 14%) color: hwb(211 16% 14%)
OKLCH oklch(0.5937 0.1615 253.6) color: oklch(0.5937 0.1615 253.6)
Lab lab(52.69 7.56 -54.1) color: lab(52.69 7.56 -54.1)
LCH lch(52.69 54.63 277.96) color: lch(52.69 54.63 277.96)

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 4.08:1
vs Black 5.15:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#4E4FC5 — rgb(78, 79, 197)

Deuteranopia (Green-blind)

#4943BF — rgb(73, 67, 191)

Tritanopia (Blue-blind)

#2DB3AF — rgb(45, 179, 175)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(211, 71%, 51%);

text

color: hsl(211, 71%, 51%);

border

border: 2px solid hsl(211, 71%, 51%);

gradient light

background: linear-gradient(to right, hsl(211, 71%, 71%), hsl(211, 71%, 51%));

gradient dark

background: linear-gradient(to right, hsl(211, 71%, 51%), hsl(211, 71%, 31%))

hex

background-color: #297FDB;

tailwind

bg-[hsl(211,71%,51%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(211, 71%, 51%, 0.4);

css variable

--color-primary: hsl(211, 71%, 51%);

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(211, 71%, 51%)?

HEX: #297FDB | RGB: rgb(41, 127, 219) | CMYK: 81%, 42%, 0%, 14% | HSV: 211°, 81%, 86%. Copy any format from the conversion table above.

What colors go well with #297FDB?

The complementary color is HSL(31, 71%, 51%). For a triadic harmony, use hues 211°, 331°, and 91°. For analogous combinations, try hues 181° and 241°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(211, 71%, 51%) in CSS?

As HSL: color: hsl(211, 71%, 51%); — As HEX: color: #297FDB; — As RGB: color: rgb(41, 127, 219); — Tailwind CSS: bg-[hsl(211,71%,51%)] — CSS variable: --color-primary: hsl(211, 71%, 51%);