#402D31

Closest named color: Onyx (#343A40). oklch(32.1% 0.029 4.9), rgb(64, 45, 49).

Aa

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

About this color

#402D31 is a dark close to neutral grey. In OKLCH its lightness is 32%, its chroma 0.029. It has too little chroma to lean warm or cool. The nearest named color is Onyx (#343A40), ΔE 0.044 away. White text reads best on it, at 12.82:1.

Hue familyNeutrals
Lightnessdark (32%)
Chromaclose to neutral grey (0.029)
Temperatureneutral
Nearest nameOnyx (#343A40)
Black text1.63:1
White text12.82:1

Values

HEX#402D31
RGBrgb(64, 45, 49)
HSLhsl(347, 17%, 21%)
OKLCHoklch(32.1% 0.029 4.9)

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 #402D31 12.82:1 AAA Lc -102.2 Preferred for body text
Black text on #402D31 1.63:1 Fails Lc 0.0 Not readable
#402D31 text on white 12.82:1 AAA Lc 98.9 Preferred for body text
#402D31 text on black 1.63: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 950.

  1. Step 50

    50

    #F8F4F5

    oklch(97.1% 0.004 360)

  2. Step 100

    100

    #F0E7E9

    oklch(93.6% 0.01 2)

  3. Step 200

    200

    #E5D4D7

    oklch(88.5% 0.019 5.3)

  4. Step 300

    300

    #D5B8BE

    oklch(80.9% 0.034 3.8)

  5. Step 400

    400

    #BF939C

    oklch(70.7% 0.054 4.9)

  6. Step 500

    500

    #AE7884

    oklch(63.1% 0.069 4.6)

  7. Step 600

    600

    #99606D

    oklch(55.5% 0.076 5)

  8. Step 700

    700

    #824F5B

    oklch(48.9% 0.07 4.7)

  9. Step 800

    800

    #6A414B

    oklch(42.6% 0.059 4)

  10. Step 900

    900

    #56373E

    oklch(37.6% 0.045 4.7)

  11. Step 950

    950 (this color)

    #402D31

    oklch(32.1% 0.029 4.9)

Export this scale for Tailwind in the Tailwind colors tool

#402D31 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)#3030310.031
Deuteranopia (no green cones)#3433310.028
Tritanopia (no blue cones)#432C2E0.007
Achromatopsia (no color)#3232320.029

Harmonies

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

Complementary

The opposite hue (180°).

  • #402D31

    #402D31

    oklch(32.1% 0.029 4.9)

  • #223835

    #223835

    oklch(32.1% 0.028 185.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402D31

    #402D31

    oklch(32.1% 0.029 4.9)

  • #3C2E39

    #3C2E39

    oklch(32.1% 0.027 333.8)

  • #402E29

    #402E29

    oklch(32% 0.028 36.1)

Open the analogous palette in the generator

Split complementary

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

  • #402D31

    #402D31

    oklch(32.1% 0.029 4.9)

  • #27372D

    #27372D

    oklch(31.9% 0.028 157)

  • #21373C

    #21373C

    oklch(32.1% 0.029 213.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402D31

    #402D31

    oklch(32.1% 0.029 4.9)

  • #303626

    #303626

    oklch(32.2% 0.028 124.7)

  • #273541

    #273541

    oklch(32.2% 0.028 244.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402D31

    #402D31

    oklch(32.1% 0.029 4.9)

  • #383322

    #383322

    oklch(32.1% 0.029 93.7)

  • #223835

    #223835

    oklch(32.1% 0.028 185.1)

  • #2E3242

    #2E3242

    oklch(32% 0.029 273.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #402D31 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.