HSL(221, 54%, 28%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(221,54%,28%)]

Color Conversions

Format Value CSS Usage
HSL hsl(221, 54%, 28%) color: hsl(221, 54%, 28%)
HEX #21396E color: #21396E
RGB rgb(33, 57, 110) color: rgb(33, 57, 110)
CMYK cmyk(70%, 48%, 0%, 57%)
HSV hsv(221, 70%, 43%)
HWB hwb(221 13% 57%) color: hwb(221 13% 57%)
OKLCH oklch(0.3557 0.0966 263.85) color: oklch(0.3557 0.0966 263.85)
Lab lab(24.87 9.96 -33.58) color: lab(24.87 9.96 -33.58)
LCH lch(24.87 35.03 286.52) color: lch(24.87 35.03 286.52)

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 11.2:1
vs Black 1.88: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)

#2B2C61 — rgb(43, 44, 97)

Deuteranopia (Green-blind)

#2A285E — rgb(42, 40, 94)

Tritanopia (Blue-blind)

#225755 — rgb(34, 87, 85)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(221, 54%, 28%);

text

color: hsl(221, 54%, 28%);

border

border: 2px solid hsl(221, 54%, 28%);

gradient light

background: linear-gradient(to right, hsl(221, 54%, 48%), hsl(221, 54%, 28%));

gradient dark

background: linear-gradient(to right, hsl(221, 54%, 28%), hsl(221, 54%, 8%))

hex

background-color: #21396E;

tailwind

bg-[hsl(221,54%,28%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(221, 54%, 28%, 0.4);

css variable

--color-primary: hsl(221, 54%, 28%);

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(221, 54%, 28%)?

HEX: #21396E | RGB: rgb(33, 57, 110) | CMYK: 70%, 48%, 0%, 57% | HSV: 221°, 70%, 43%. Copy any format from the conversion table above.

What colors go well with #21396E?

The complementary color is HSL(41, 54%, 28%). For a triadic harmony, use hues 221°, 341°, and 101°. For analogous combinations, try hues 191° and 251°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(221, 54%, 28%) in CSS?

As HSL: color: hsl(221, 54%, 28%); — As HEX: color: #21396E; — As RGB: color: rgb(33, 57, 110); — Tailwind CSS: bg-[hsl(221,54%,28%)] — CSS variable: --color-primary: hsl(221, 54%, 28%);