HSL(251, 12%, 40%)

Grayish Blue — Blue color

Adjust Color

Color Information

Color Name

Grayish Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

N/A

CSS Class

bg-[hsl(251,12%,40%)]

Color Conversions

Format Value CSS Usage
HSL hsl(251, 12%, 40%) color: hsl(251, 12%, 40%)
HEX #5E5A72 color: #5E5A72
RGB rgb(94, 90, 114) color: rgb(94, 90, 114)
CMYK cmyk(18%, 21%, 0%, 55%)
HSV hsv(250, 21%, 45%)
HWB hwb(250 36% 55%) color: hwb(250 36% 55%)
OKLCH oklch(0.4804 0.0385 292.53) color: oklch(0.4804 0.0385 292.53)
Lab lab(39.42 7.03 -13.03) color: lab(39.42 7.03 -13.03)
LCH lch(39.42 14.81 298.35) color: lch(39.42 14.81 298.35)

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 6.6:1
vs Black 3.18:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#5C5C6C — rgb(92, 92, 108)

Deuteranopia (Green-blind)

#5D5D6B — rgb(93, 93, 107)

Tritanopia (Blue-blind)

#5E6867 — rgb(94, 104, 103)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(251, 12%, 40%);

text

color: hsl(251, 12%, 40%);

border

border: 2px solid hsl(251, 12%, 40%);

gradient light

background: linear-gradient(to right, hsl(251, 12%, 60%), hsl(251, 12%, 40%));

gradient dark

background: linear-gradient(to right, hsl(251, 12%, 40%), hsl(251, 12%, 20%))

hex

background-color: #5E5A72;

tailwind

bg-[hsl(251,12%,40%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(251, 12%, 40%, 0.4);

css variable

--color-primary: hsl(251, 12%, 40%);

Related Colors

Use Cases for Grayish Blue

Corporate branding Trust signals Tech products Social media Primary buttons

Frequently Asked Questions

What are all the color codes for HSL(251, 12%, 40%)?

HEX: #5E5A72 | RGB: rgb(94, 90, 114) | CMYK: 18%, 21%, 0%, 55% | HSV: 250°, 21%, 45%. Copy any format from the conversion table above.

What colors go well with #5E5A72?

The complementary color is HSL(71, 12%, 40%). For a triadic harmony, use hues 251°, 11°, and 131°. For analogous combinations, try hues 221° and 281°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(251, 12%, 40%) in CSS?

As HSL: color: hsl(251, 12%, 40%); — As HEX: color: #5E5A72; — As RGB: color: rgb(94, 90, 114); — Tailwind CSS: bg-[hsl(251,12%,40%)] — CSS variable: --color-primary: hsl(251, 12%, 40%);