HSL(223, 32%, 28%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(223,32%,28%)]

Color Conversions

Format Value CSS Usage
HSL hsl(223, 32%, 28%) color: hsl(223, 32%, 28%)
HEX #313D5E color: #313D5E
RGB rgb(49, 61, 94) color: rgb(49, 61, 94)
CMYK cmyk(48%, 35%, 0%, 63%)
HSV hsv(224, 48%, 37%)
HWB hwb(224 19% 63%) color: hwb(224 19% 63%)
OKLCH oklch(0.3651 0.0594 268.16) color: oklch(0.3651 0.0594 268.16)
Lab lab(26.15 5.09 -21.18) color: lab(26.15 5.09 -21.18)
LCH lch(26.15 21.78 283.51) color: lch(26.15 21.78 283.51)

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 10.72:1
vs Black 1.96: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)

#363656 — rgb(54, 54, 86)

Deuteranopia (Green-blind)

#363554 — rgb(54, 53, 84)

Tritanopia (Blue-blind)

#32504E — rgb(50, 80, 78)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(223, 32%, 28%);

text

color: hsl(223, 32%, 28%);

border

border: 2px solid hsl(223, 32%, 28%);

gradient light

background: linear-gradient(to right, hsl(223, 32%, 48%), hsl(223, 32%, 28%));

gradient dark

background: linear-gradient(to right, hsl(223, 32%, 28%), hsl(223, 32%, 8%))

hex

background-color: #313D5E;

tailwind

bg-[hsl(223,32%,28%)]

box shadow

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

css variable

--color-primary: hsl(223, 32%, 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(223, 32%, 28%)?

HEX: #313D5E | RGB: rgb(49, 61, 94) | CMYK: 48%, 35%, 0%, 63% | HSV: 224°, 48%, 37%. Copy any format from the conversion table above.

What colors go well with #313D5E?

The complementary color is HSL(43, 32%, 28%). For a triadic harmony, use hues 223°, 343°, and 103°. For analogous combinations, try hues 193° and 253°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(223, 32%, 28%) in CSS?

As HSL: color: hsl(223, 32%, 28%); — As HEX: color: #313D5E; — As RGB: color: rgb(49, 61, 94); — Tailwind CSS: bg-[hsl(223,32%,28%)] — CSS variable: --color-primary: hsl(223, 32%, 28%);