#404C47

Closest named color: Dark Slate Gray (#2F4F4F). oklch(40.4% 0.017 168.4), rgb(64, 76, 71).

Aa

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

About this color

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

Hue familyNeutrals
Lightnessdark (40%)
Chromaclose to neutral grey (0.017)
Temperatureneutral
Nearest nameDark Slate Gray (#2F4F4F)
Black text2.34:1
White text8.96:1

Values

HEX#404C47
RGBrgb(64, 76, 71)
HSLhsl(155, 9%, 27%)
OKLCHoklch(40.4% 0.017 168.4)

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 #404C47 8.96:1 AAA Lc -95.0 Preferred for body text
Black text on #404C47 2.34:1 Fails Lc 13.4 Not readable
#404C47 text on white 8.96:1 AAA Lc 90.6 Preferred for body text
#404C47 text on black 2.34:1 Fails Lc -11.7 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

    #F4F6F5

    oklch(97.1% 0.002 165.1)

  2. Step 100

    100

    #E8EAE9

    oklch(93.5% 0.003 165.1)

  3. Step 200

    200

    #D6DAD8

    oklch(88.5% 0.005 165)

  4. Step 300

    300

    #BBC3BF

    oklch(81% 0.01 164.8)

  5. Step 400

    400

    #97A49F

    oklch(70.7% 0.016 170.8)

  6. Step 500

    500

    #7E8E87

    oklch(63.2% 0.021 167.5)

  7. Step 600

    600

    #677871

    oklch(55.7% 0.023 168.7)

  8. Step 700

    700

    #56655E

    oklch(49.2% 0.021 165.7)

  9. Step 800

    800 (this color)

    #404C47

    oklch(40.4% 0.017 168.4)

  10. Step 900

    900

    #3B4440

    oklch(37.7% 0.014 167.1)

  11. Step 950

    950

    #232826

    oklch(27.1% 0.008 169.8)

Export this scale for Tailwind in the Tailwind colors tool

#404C47 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)#4B4A470.018
Deuteranopia (no green cones)#4949470.016
Tritanopia (no blue cones)#3E4C4A0.005
Achromatopsia (no color)#4949490.018

Harmonies

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

Complementary

The opposite hue (180°).

  • #404C47

    #404C47

    oklch(40.4% 0.017 168.4)

  • #50454A

    #50454A

    oklch(40.3% 0.017 348.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #404C47

    #404C47

    oklch(40.4% 0.017 168.4)

  • #444B42

    #444B42

    oklch(40.3% 0.017 138.7)

  • #3E4C4C

    #3E4C4C

    oklch(40.4% 0.018 196.5)

Open the analogous palette in the generator

Split complementary

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

  • #404C47

    #404C47

    oklch(40.4% 0.017 168.4)

  • #4D464F

    #4D464F

    oklch(40.4% 0.017 318.7)

  • #524545

    #524545

    oklch(40.4% 0.018 17.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #404C47

    #404C47

    oklch(40.4% 0.017 168.4)

  • #484752

    #484752

    oklch(40.3% 0.018 289.7)

  • #514641

    #514641

    oklch(40.4% 0.017 46)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #404C47

    #404C47

    oklch(40.4% 0.017 168.4)

  • #434952

    #434952

    oklch(40.3% 0.017 258.4)

  • #50454A

    #50454A

    oklch(40.3% 0.017 348.7)

  • #4E483E

    #4E483E

    oklch(40.4% 0.018 80.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #404C47 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.