HSL(231, 14%, 54%)

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(231,14%,54%)]

Color Conversions

Format Value CSS Usage
HSL hsl(231, 14%, 54%) color: hsl(231, 14%, 54%)
HEX #797E9A color: #797E9A
RGB rgb(121, 126, 154) color: rgb(121, 126, 154)
CMYK cmyk(21%, 18%, 0%, 40%)
HSV hsv(231, 21%, 60%)
HWB hwb(231 47% 40%) color: hwb(231 47% 40%)
OKLCH oklch(0.599 0.043 277.08) color: oklch(0.599 0.043 277.08)
Lab lab(53.3 4.42 -15.63) color: lab(53.3 4.42 -15.63)
LCH lch(53.3 16.24 285.79) color: lch(53.3 16.24 285.79)

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 3.99:1
vs Black 5.26:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#7B7B93 — rgb(123, 123, 147)

Deuteranopia (Green-blind)

#7B7B92 — rgb(123, 123, 146)

Tritanopia (Blue-blind)

#798E8D — rgb(121, 142, 141)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(231, 14%, 54%);

text

color: hsl(231, 14%, 54%);

border

border: 2px solid hsl(231, 14%, 54%);

gradient light

background: linear-gradient(to right, hsl(231, 14%, 74%), hsl(231, 14%, 54%));

gradient dark

background: linear-gradient(to right, hsl(231, 14%, 54%), hsl(231, 14%, 34%))

hex

background-color: #797E9A;

tailwind

bg-[hsl(231,14%,54%)]

box shadow

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

css variable

--color-primary: hsl(231, 14%, 54%);

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(231, 14%, 54%)?

HEX: #797E9A | RGB: rgb(121, 126, 154) | CMYK: 21%, 18%, 0%, 40% | HSV: 231°, 21%, 60%. Copy any format from the conversion table above.

What colors go well with #797E9A?

The complementary color is HSL(51, 14%, 54%). For a triadic harmony, use hues 231°, 351°, and 111°. For analogous combinations, try hues 201° and 261°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(231, 14%, 54%) in CSS?

As HSL: color: hsl(231, 14%, 54%); — As HEX: color: #797E9A; — As RGB: color: rgb(121, 126, 154); — Tailwind CSS: bg-[hsl(231,14%,54%)] — CSS variable: --color-primary: hsl(231, 14%, 54%);