#404B42

Closest named color: Dark Slate Gray (#2F4F4F). oklch(40% 0.021 150.6), rgb(64, 75, 66).

Aa

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

About this color

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

Hue familyNeutrals
Lightnessdark (40%)
Chromaclose to neutral grey (0.021)
Temperatureneutral
Nearest nameDark Slate Gray (#2F4F4F)
Black text2.30:1
White text9.11:1

Values

HEX#404B42
RGBrgb(64, 75, 66)
HSLhsl(131, 8%, 27%)
OKLCHoklch(40% 0.021 150.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 #404B42 9.11:1 AAA Lc -95.4 Preferred for body text
Black text on #404B42 2.30:1 Fails Lc 13.0 Not readable
#404B42 text on white 9.11:1 AAA Lc 91.0 Preferred for body text
#404B42 text on black 2.30:1 Fails Lc -11.3 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

    #F4F6F5

    oklch(97.1% 0.002 165.1)

  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

    #96A599

    oklch(70.7% 0.024 151.5)

  6. Step 500

    500

    #7C8F80

    oklch(63% 0.031 151.6)

  7. Step 600

    600

    #657969

    oklch(55.5% 0.034 151)

  8. Step 700

    700

    #546657

    oklch(49.1% 0.032 149.9)

  9. Step 800

    800

    #455348

    oklch(42.7% 0.025 151.6)

  10. Step 900

    900 (this color)

    #404B42

    oklch(40% 0.021 150.6)

  11. Step 950

    950

    #222823

    oklch(26.9% 0.013 150.2)

Export this scale for Tailwind in the Tailwind colors tool

#404B42 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)#4B49420.018
Deuteranopia (no green cones)#4948420.016
Tritanopia (no blue cones)#3F4B480.010
Achromatopsia (no color)#4848480.021

Harmonies

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

Complementary

The opposite hue (180°).

  • #404B42

    #404B42

    oklch(40% 0.021 150.6)

  • #4E444D

    #4E444D

    oklch(40% 0.02 329.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #404B42

    #404B42

    oklch(40% 0.021 150.6)

  • #464A3D

    #464A3D

    oklch(40.1% 0.022 121.3)

  • #3C4B48

    #3C4B48

    oklch(39.9% 0.02 181.8)

Open the analogous palette in the generator

Split complementary

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

  • #404B42

    #404B42

    oklch(40% 0.021 150.6)

  • #494551

    #494551

    oklch(39.9% 0.021 300.7)

  • #524347

    #524347

    oklch(40% 0.022 0.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #404B42

    #404B42

    oklch(40% 0.021 150.6)

  • #434753

    #434753

    oklch(39.9% 0.021 270.8)

  • #524441

    #524441

    oklch(40% 0.02 32.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #404B42

    #404B42

    oklch(40% 0.021 150.6)

  • #3E4952

    #3E4952

    oklch(39.9% 0.021 242.9)

  • #4E444D

    #4E444D

    oklch(40% 0.02 329.1)

  • #50453D

    #50453D

    oklch(39.9% 0.02 58.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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