HSL(222, 56%, 26%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(222,56%,26%)]

Color Conversions

Format Value CSS Usage
HSL hsl(222, 56%, 26%) color: hsl(222, 56%, 26%)
HEX #1D3367 color: #1D3367
RGB rgb(29, 51, 103) color: rgb(29, 51, 103)
CMYK cmyk(72%, 50%, 0%, 60%)
HSV hsv(222, 72%, 40%)
HWB hwb(222 11% 60%) color: hwb(222 11% 60%)
OKLCH oklch(0.3341 0.0955 264.55) color: oklch(0.3341 0.0955 264.55)
Lab lab(22.33 10.68 -33.17) color: lab(22.33 10.68 -33.17)
LCH lch(22.33 34.85 287.85) color: lch(22.33 34.85 287.85)

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 12.2:1
vs Black 1.72: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)

#27275A — rgb(39, 39, 90)

Deuteranopia (Green-blind)

#252457 — rgb(37, 36, 87)

Tritanopia (Blue-blind)

#1E504E — rgb(30, 80, 78)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(222, 56%, 26%);

text

color: hsl(222, 56%, 26%);

border

border: 2px solid hsl(222, 56%, 26%);

gradient light

background: linear-gradient(to right, hsl(222, 56%, 46%), hsl(222, 56%, 26%));

gradient dark

background: linear-gradient(to right, hsl(222, 56%, 26%), hsl(222, 56%, 6%))

hex

background-color: #1D3367;

tailwind

bg-[hsl(222,56%,26%)]

box shadow

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

css variable

--color-primary: hsl(222, 56%, 26%);

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, 56%, 26%)?

HEX: #1D3367 | RGB: rgb(29, 51, 103) | CMYK: 72%, 50%, 0%, 60% | HSV: 222°, 72%, 40%. Copy any format from the conversion table above.

What colors go well with #1D3367?

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

As HSL: color: hsl(222, 56%, 26%); — As HEX: color: #1D3367; — As RGB: color: rgb(29, 51, 103); — Tailwind CSS: bg-[hsl(222,56%,26%)] — CSS variable: --color-primary: hsl(222, 56%, 26%);