HSL(222, 60%, 41%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(222,60%,41%)]

Color Conversions

Format Value CSS Usage
HSL hsl(222, 60%, 41%) color: hsl(222, 60%, 41%)
HEX #2A4FA7 color: #2A4FA7
RGB rgb(42, 79, 167) color: rgb(42, 79, 167)
CMYK cmyk(75%, 53%, 0%, 35%)
HSV hsv(222, 75%, 65%)
HWB hwb(222 16% 35%) color: hwb(222 16% 35%)
OKLCH oklch(0.4526 0.1482 264.16) color: oklch(0.4526 0.1482 264.16)
Lab lab(35.74 18.59 -51.23) color: lab(35.74 18.59 -51.23)
LCH lch(35.74 54.5 289.94) color: lch(35.74 54.5 289.94)

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 7.57:1
vs Black 2.77: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)

#3A3A92 — rgb(58, 58, 146)

Deuteranopia (Green-blind)

#38358D — rgb(56, 53, 141)

Tritanopia (Blue-blind)

#2C817D — rgb(44, 129, 125)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(222, 60%, 41%);

text

color: hsl(222, 60%, 41%);

border

border: 2px solid hsl(222, 60%, 41%);

gradient light

background: linear-gradient(to right, hsl(222, 60%, 61%), hsl(222, 60%, 41%));

gradient dark

background: linear-gradient(to right, hsl(222, 60%, 41%), hsl(222, 60%, 21%))

hex

background-color: #2A4FA7;

tailwind

bg-[hsl(222,60%,41%)]

box shadow

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

css variable

--color-primary: hsl(222, 60%, 41%);

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, 60%, 41%)?

HEX: #2A4FA7 | RGB: rgb(42, 79, 167) | CMYK: 75%, 53%, 0%, 35% | HSV: 222°, 75%, 65%. Copy any format from the conversion table above.

What colors go well with #2A4FA7?

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

As HSL: color: hsl(222, 60%, 41%); — As HEX: color: #2A4FA7; — As RGB: color: rgb(42, 79, 167); — Tailwind CSS: bg-[hsl(222,60%,41%)] — CSS variable: --color-primary: hsl(222, 60%, 41%);