HSL(222, 51%, 34%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

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

Color Conversions

Format Value CSS Usage
HSL hsl(222, 51%, 34%) color: hsl(222, 51%, 34%)
HEX #2A4583 color: #2A4583
RGB rgb(42, 69, 131) color: rgb(42, 69, 131)
CMYK cmyk(68%, 47%, 0%, 49%)
HSV hsv(222, 68%, 51%)
HWB hwb(222 16% 49%) color: hwb(222 16% 49%)
OKLCH oklch(0.4036 0.1092 264.36) color: oklch(0.4036 0.1092 264.36)
Lab lab(30.37 11.49 -37.99) color: lab(30.37 11.49 -37.99)
LCH lch(30.37 39.69 286.83) color: lch(30.37 39.69 286.83)

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 9.22:1
vs Black 2.28: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)

#363674 — rgb(54, 54, 116)

Deuteranopia (Green-blind)

#343270 — rgb(52, 50, 112)

Tritanopia (Blue-blind)

#2B6866 — rgb(43, 104, 102)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

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

text

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

border

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

gradient light

background: linear-gradient(to right, hsl(222, 51%, 54%), hsl(222, 51%, 34%));

gradient dark

background: linear-gradient(to right, hsl(222, 51%, 34%), hsl(222, 51%, 14%))

hex

background-color: #2A4583;

tailwind

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

box shadow

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

css variable

--color-primary: hsl(222, 51%, 34%);

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, 51%, 34%)?

HEX: #2A4583 | RGB: rgb(42, 69, 131) | CMYK: 68%, 47%, 0%, 49% | HSV: 222°, 68%, 51%. Copy any format from the conversion table above.

What colors go well with #2A4583?

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

As HSL: color: hsl(222, 51%, 34%); — As HEX: color: #2A4583; — As RGB: color: rgb(42, 69, 131); — Tailwind CSS: bg-[hsl(222,51%,34%)] — CSS variable: --color-primary: hsl(222, 51%, 34%);