#31394A

Closest named color: Onyx (#343A40). oklch(34.4% 0.032 265.1), rgb(49, 57, 74).

Aa

White text reads best on this color (11.57:1).

About this color

#31394A is a dark, muted blue. In OKLCH its lightness is 34%, its chroma 0.032 and its hue 265°. Its hue sits on the cool side of the wheel. The nearest named color is Onyx (#343A40), ΔE 0.020 away. White text reads best on it, at 11.57:1.

Hue familyBlues
Lightnessdark (34%)
Chromamuted (0.032)
Temperaturecool
Nearest nameOnyx (#343A40)
Black text1.81:1
White text11.57:1

Values

HEX#31394A
RGBrgb(49, 57, 74)
HSLhsl(221, 20%, 24%)
OKLCHoklch(34.4% 0.032 265.1)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #31394A 11.57:1 AAA Lc -100.3 Preferred for body text
Black text on #31394A 1.81:1 Fails Lc 0.0 Not readable
#31394A text on white 11.57:1 AAA Lc 96.6 Preferred for body text
#31394A text on black 1.81:1 Fails Lc 0.0 Not readable

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 900.

  1. Step 50

    50

    #F4F5F8

    oklch(97% 0.004 271.4)

  2. Step 100

    100

    #E7EAEF

    oklch(93.6% 0.007 260.7)

  3. Step 200

    200

    #D5D9E2

    oklch(88.5% 0.013 266.7)

  4. Step 300

    300

    #B9C1D1

    oklch(81% 0.024 264.4)

  5. Step 400

    400

    #95A1B9

    oklch(70.8% 0.038 264.3)

  6. Step 500

    500

    #7B89A8

    oklch(63% 0.05 265.9)

  7. Step 600

    600

    #647393

    oklch(55.6% 0.053 265.1)

  8. Step 700

    700

    #53617D

    oklch(49.2% 0.048 264)

  9. Step 800

    800

    #444F66

    oklch(42.7% 0.041 264.8)

  10. Step 900

    900 (this color)

    #31394A

    oklch(34.4% 0.032 265.1)

  11. Step 950

    950

    #222631

    oklch(27% 0.021 269.3)

Export this scale for Tailwind in the Tailwind colors tool

#31394A with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#333A4B0.005
Deuteranopia (no green cones)#31384A0.003
Tritanopia (no blue cones)#2A3C3F0.027
Achromatopsia (no color)#3939390.032

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #31394A

    #31394A

    oklch(34.4% 0.032 265.1)

  • #413826

    #413826

    oklch(34.5% 0.032 84.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #31394A

    #31394A

    oklch(34.4% 0.032 265.1)

  • #293C47

    #293C47

    oklch(34.5% 0.031 234.3)

  • #3A3648

    #3A3648

    oklch(34.4% 0.031 294.9)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #31394A

    #31394A

    oklch(34.4% 0.032 265.1)

  • #463529

    #463529

    oklch(34.4% 0.032 56.7)

  • #383B28

    #383B28

    oklch(34.4% 0.032 115.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #31394A

    #31394A

    oklch(34.4% 0.032 265.1)

  • #483331

    #483331

    oklch(34.5% 0.031 25)

  • #2F3E2F

    #2F3E2F

    oklch(34.6% 0.032 144.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #31394A

    #31394A

    oklch(34.4% 0.032 265.1)

  • #47323A

    #47323A

    oklch(34.4% 0.033 354.3)

  • #413826

    #413826

    oklch(34.5% 0.032 84.3)

  • #273F38

    #273F38

    oklch(34.5% 0.032 174)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #31394A, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #31394A in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.