HSL(217, 78%, 52%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(217,78%,52%)]

Color Conversions

Format Value CSS Usage
HSL hsl(217, 78%, 52%) color: hsl(217, 78%, 52%)
HEX #256EE4 color: #256EE4
RGB rgb(37, 110, 228) color: rgb(37, 110, 228)
CMYK cmyk(84%, 52%, 0%, 11%)
HSV hsv(217, 84%, 89%)
HWB hwb(217 14% 11%) color: hwb(217 14% 11%)
OKLCH oklch(0.5626 0.1934 259.94) color: oklch(0.5626 0.1934 259.94)
Lab lab(48.44 21.29 -66.01) color: lab(48.44 21.29 -66.01)
LCH lch(48.44 69.36 287.88) color: lch(48.44 69.36 287.88)

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.74:1
vs Black 4.43: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)

#4545C7 — rgb(69, 69, 199)

Deuteranopia (Green-blind)

#403BC1 — rgb(64, 59, 193)

Tritanopia (Blue-blind)

#29B1AC — rgb(41, 177, 172)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(217, 78%, 52%);

text

color: hsl(217, 78%, 52%);

border

border: 2px solid hsl(217, 78%, 52%);

gradient light

background: linear-gradient(to right, hsl(217, 78%, 72%), hsl(217, 78%, 52%));

gradient dark

background: linear-gradient(to right, hsl(217, 78%, 52%), hsl(217, 78%, 32%))

hex

background-color: #256EE4;

tailwind

bg-[hsl(217,78%,52%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(217, 78%, 52%, 0.4);

css variable

--color-primary: hsl(217, 78%, 52%);

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(217, 78%, 52%)?

HEX: #256EE4 | RGB: rgb(37, 110, 228) | CMYK: 84%, 52%, 0%, 11% | HSV: 217°, 84%, 89%. Copy any format from the conversion table above.

What colors go well with #256EE4?

The complementary color is HSL(37, 78%, 52%). For a triadic harmony, use hues 217°, 337°, and 97°. For analogous combinations, try hues 187° and 247°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(217, 78%, 52%) in CSS?

As HSL: color: hsl(217, 78%, 52%); — As HEX: color: #256EE4; — As RGB: color: rgb(37, 110, 228); — Tailwind CSS: bg-[hsl(217,78%,52%)] — CSS variable: --color-primary: hsl(217, 78%, 52%);