#405156

Closest named color: Dark Slate Gray (#2F4F4F). oklch(42.2% 0.023 217.6), rgb(64, 81, 86).

Aa

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

About this color

#405156 is a dark close to neutral grey. In OKLCH its lightness is 42%, its chroma 0.023. It has too little chroma to lean warm or cool. The nearest named color is Dark Slate Gray (#2F4F4F), ΔE 0.027 away. White text reads best on it, at 8.30:1.

Hue familyNeutrals
Lightnessdark (42%)
Chromaclose to neutral grey (0.023)
Temperatureneutral
Nearest nameDark Slate Gray (#2F4F4F)
Black text2.52:1
White text8.30:1

Values

HEX#405156
RGBrgb(64, 81, 86)
HSLhsl(194, 15%, 29%)
OKLCHoklch(42.2% 0.023 217.6)

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 #405156 8.30:1 AAA Lc -93.3 Preferred for body text
Black text on #405156 2.52:1 Fails Lc 15.3 Dividers and decoration only
#405156 text on white 8.30:1 AAA Lc 88.7 Fine for body text
#405156 text on black 2.52:1 Fails Lc -13.5 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 800.

  1. Step 50

    50

    #F4F6F6

    oklch(97.2% 0.002 197.1)

  2. Step 100

    100

    #E7EAEB

    oklch(93.5% 0.004 219.5)

  3. Step 200

    200

    #D4DADC

    oklch(88.4% 0.007 219.6)

  4. Step 300

    300

    #B8C3C6

    oklch(81% 0.013 215.8)

  5. Step 400

    400

    #92A4A9

    oklch(70.6% 0.022 216.3)

  6. Step 500

    500

    #788E94

    oklch(63.1% 0.027 216)

  7. Step 600

    600

    #60787F

    oklch(55.6% 0.03 217.4)

  8. Step 700

    700

    #4F656B

    oklch(49.1% 0.028 216.2)

  9. Step 800

    800 (this color)

    #405156

    oklch(42.2% 0.023 217.6)

  10. Step 900

    900

    #374448

    oklch(37.7% 0.018 218.4)

  11. Step 950

    950

    #20282A

    oklch(27% 0.012 214.5)

Export this scale for Tailwind in the Tailwind colors tool

#405156 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)#4E50560.021
Deuteranopia (no green cones)#4A4D560.018
Tritanopia (no blue cones)#3953520.014
Achromatopsia (no color)#4E4E4E0.023

Harmonies

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

Complementary

The opposite hue (180°).

  • #405156

    #405156

    oklch(42.2% 0.023 217.6)

  • #594A45

    #594A45

    oklch(42.3% 0.022 39.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #405156

    #405156

    oklch(42.2% 0.023 217.6)

  • #405250

    #405250

    oklch(42.3% 0.023 188)

  • #444F5A

    #444F5A

    oklch(42.2% 0.023 248.4)

Open the analogous palette in the generator

Split complementary

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

  • #405156

    #405156

    oklch(42.2% 0.023 217.6)

  • #59494B

    #59494B

    oklch(42.2% 0.022 9.6)

  • #564C41

    #564C41

    oklch(42.3% 0.022 69.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #405156

    #405156

    oklch(42.2% 0.023 217.6)

  • #564952

    #564952

    oklch(42.2% 0.023 337.2)

  • #514E40

    #514E40

    oklch(42.2% 0.023 97.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #405156

    #405156

    oklch(42.2% 0.023 217.6)

  • #514B58

    #514B58

    oklch(42.3% 0.023 306.2)

  • #594A45

    #594A45

    oklch(42.3% 0.022 39.3)

  • #4A5043

    #4A5043

    oklch(42.2% 0.022 127.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #405156 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.