HSL(222, 79%, 51%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(222,79%,51%)]

Color Conversions

Format Value CSS Usage
HSL hsl(222, 79%, 51%) color: hsl(222, 79%, 51%)
HEX #1F5BE5 color: #1F5BE5
RGB rgb(31, 91, 229) color: rgb(31, 91, 229)
CMYK cmyk(86%, 60%, 0%, 10%)
HSV hsv(222, 86%, 90%)
HWB hwb(222 13% 10%) color: hwb(222 13% 10%)
OKLCH oklch(0.5243 0.2181 263.17) color: oklch(0.5243 0.2181 263.17)
Lab lab(43.4 33.43 -74.79) color: lab(43.4 33.43 -74.79)
LCH lch(43.4 81.92 294.08) color: lch(43.4 81.92 294.08)

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

#393AC4 — rgb(57, 58, 196)

Deuteranopia (Green-blind)

#3631BC — rgb(54, 49, 188)

Tritanopia (Blue-blind)

#22A9A3 — rgb(34, 169, 163)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(222, 79%, 51%);

text

color: hsl(222, 79%, 51%);

border

border: 2px solid hsl(222, 79%, 51%);

gradient light

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

gradient dark

background: linear-gradient(to right, hsl(222, 79%, 51%), hsl(222, 79%, 31%))

hex

background-color: #1F5BE5;

tailwind

bg-[hsl(222,79%,51%)]

box shadow

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

css variable

--color-primary: hsl(222, 79%, 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(222, 79%, 51%)?

HEX: #1F5BE5 | RGB: rgb(31, 91, 229) | CMYK: 86%, 60%, 0%, 10% | HSV: 222°, 86%, 90%. Copy any format from the conversion table above.

What colors go well with #1F5BE5?

The complementary color is HSL(42, 79%, 51%). 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, 79%, 51%) in CSS?

As HSL: color: hsl(222, 79%, 51%); — As HEX: color: #1F5BE5; — As RGB: color: rgb(31, 91, 229); — Tailwind CSS: bg-[hsl(222,79%,51%)] — CSS variable: --color-primary: hsl(222, 79%, 51%);