HSL(222, 52%, 55%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(222,52%,55%)]

Color Conversions

Format Value CSS Usage
HSL hsl(222, 52%, 55%) color: hsl(222, 52%, 55%)
HEX #5174C8 color: #5174C8
RGB rgb(81, 116, 200) color: rgb(81, 116, 200)
CMYK cmyk(60%, 42%, 0%, 22%)
HSV hsv(222, 60%, 78%)
HWB hwb(222 31% 22%) color: hwb(222 31% 22%)
OKLCH oklch(0.5734 0.1357 265.33) color: oklch(0.5734 0.1357 265.33)
Lab lab(49.99 13.26 -47.54) color: lab(49.99 13.26 -47.54)
LCH lch(49.99 49.35 285.59) color: lch(49.99 49.35 285.59)

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.49:1
vs Black 4.68: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)

#6060B4 — rgb(96, 96, 180)

Deuteranopia (Green-blind)

#5E5CAF — rgb(94, 92, 175)

Tritanopia (Blue-blind)

#53A4A0 — rgb(83, 164, 160)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(222, 52%, 55%);

text

color: hsl(222, 52%, 55%);

border

border: 2px solid hsl(222, 52%, 55%);

gradient light

background: linear-gradient(to right, hsl(222, 52%, 75%), hsl(222, 52%, 55%));

gradient dark

background: linear-gradient(to right, hsl(222, 52%, 55%), hsl(222, 52%, 35%))

hex

background-color: #5174C8;

tailwind

bg-[hsl(222,52%,55%)]

box shadow

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

css variable

--color-primary: hsl(222, 52%, 55%);

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(222, 52%, 55%)?

HEX: #5174C8 | RGB: rgb(81, 116, 200) | CMYK: 60%, 42%, 0%, 22% | HSV: 222°, 60%, 78%. Copy any format from the conversion table above.

What colors go well with #5174C8?

The complementary color is HSL(42, 52%, 55%). For a triadic harmony, use hues 222°, 342°, and 102°. For analogous combinations, try hues 192° and 252°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(222, 52%, 55%) in CSS?

As HSL: color: hsl(222, 52%, 55%); — As HEX: color: #5174C8; — As RGB: color: rgb(81, 116, 200); — Tailwind CSS: bg-[hsl(222,52%,55%)] — CSS variable: --color-primary: hsl(222, 52%, 55%);