#404F42

Closest named color: Dark Slate Gray (#2F4F4F). oklch(41% 0.029 148.8), rgb(64, 79, 66).

Aa

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

About this color

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

Hue familyNeutrals
Lightnessdark (41%)
Chromaclose to neutral grey (0.029)
Temperatureneutral
Nearest nameDark Slate Gray (#2F4F4F)
Black text2.41:1
White text8.69:1

Values

HEX#404F42
RGBrgb(64, 79, 66)
HSLhsl(128, 10%, 28%)
OKLCHoklch(41% 0.029 148.8)

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 #404F42 8.69:1 AAA Lc -94.3 Preferred for body text
Black text on #404F42 2.41:1 Fails Lc 14.2 Not readable
#404F42 text on white 8.69:1 AAA Lc 89.8 Fine for body text
#404F42 text on black 2.41:1 Fails Lc -12.4 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

    #F4F6F4

    oklch(97.1% 0.003 145.5)

  2. Step 100

    100

    #E8EBE8

    oklch(93.7% 0.005 145.5)

  3. Step 200

    200

    #D5DBD6

    oklch(88.5% 0.009 150.7)

  4. Step 300

    300

    #BAC4BB

    oklch(81% 0.017 148.4)

  5. Step 400

    400

    #96A698

    oklch(70.8% 0.027 148.9)

  6. Step 500

    500

    #7C907E

    oklch(63.2% 0.035 148)

  7. Step 600

    600

    #657A67

    oklch(55.7% 0.038 147.7)

  8. Step 700

    700

    #536656

    oklch(49% 0.034 149.5)

  9. Step 800

    800 (this color)

    #404F42

    oklch(41% 0.029 148.8)

  10. Step 900

    900

    #3A453B

    oklch(37.7% 0.022 147.6)

  11. Step 950

    950

    #222823

    oklch(26.9% 0.013 150.2)

Export this scale for Tailwind in the Tailwind colors tool

#404F42 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)#4F4C410.024
Deuteranopia (no green cones)#4D4B430.023
Tritanopia (no blue cones)#3E4E4B0.016
Achromatopsia (no color)#4B4B4B0.029

Harmonies

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

Complementary

The opposite hue (180°).

  • #404F42

    #404F42

    oklch(41% 0.029 148.8)

  • #534552

    #534552

    oklch(41% 0.028 328.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #404F42

    #404F42

    oklch(41% 0.029 148.8)

  • #494D3B

    #494D3B

    oklch(41.1% 0.029 117.9)

  • #3A504B

    #3A504B

    oklch(41.1% 0.028 179.3)

Open the analogous palette in the generator

Split complementary

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

  • #404F42

    #404F42

    oklch(41% 0.029 148.8)

  • #4C4758

    #4C4758

    oklch(40.9% 0.029 298.6)

  • #58444A

    #58444A

    oklch(41% 0.029 358.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #404F42

    #404F42

    oklch(41% 0.029 148.8)

  • #444A5A

    #444A5A

    oklch(41% 0.028 269)

  • #594542

    #594542

    oklch(41.1% 0.028 28.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #404F42

    #404F42

    oklch(41% 0.029 148.8)

  • #3C4D59

    #3C4D59

    oklch(41.1% 0.029 239.2)

  • #534552

    #534552

    oklch(41% 0.028 328.4)

  • #57473B

    #57473B

    oklch(41.1% 0.029 58.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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