#402D2C

Closest named color: Onyx (#343A40). oklch(31.9% 0.028 22.2), rgb(64, 45, 44).

Aa

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

About this color

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

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

Values

HEX#402D2C
RGBrgb(64, 45, 44)
HSLhsl(3, 19%, 21%)
OKLCHoklch(31.9% 0.028 22.2)

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 #402D2C 12.88:1 AAA Lc -102.3 Preferred for body text
Black text on #402D2C 1.62:1 Fails Lc 0.0 Not readable
#402D2C text on white 12.88:1 AAA Lc 99.0 Preferred for body text
#402D2C text on black 1.62: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

    #F8F4F4

    oklch(97% 0.004 17.2)

  2. Step 100

    100

    #F0E7E7

    oklch(93.5% 0.01 17.3)

  3. Step 200

    200

    #E5D5D3

    oklch(88.5% 0.018 26.1)

  4. Step 300

    300

    #D6B9B7

    oklch(81% 0.034 22.6)

  5. Step 400

    400

    #C09491

    oklch(70.7% 0.054 23)

  6. Step 500

    500

    #AF7977

    oklch(63% 0.068 21.5)

  7. Step 600

    600

    #9A625F

    oklch(55.6% 0.073 23)

  8. Step 700

    700

    #84514F

    oklch(49.2% 0.069 22.3)

  9. Step 800

    800

    #6B4241

    oklch(42.7% 0.057 21.3)

  10. Step 900

    900

    #573837

    oklch(37.7% 0.045 21.4)

  11. Step 950

    950 (this color)

    #402D2C

    oklch(31.9% 0.028 22.2)

Export this scale for Tailwind in the Tailwind colors tool

#402D2C 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)#31302C0.029
Deuteranopia (no green cones)#35332C0.027
Tritanopia (no blue cones)#442B2D0.010
Achromatopsia (no color)#3232320.028

Harmonies

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

Complementary

The opposite hue (180°).

  • #402D2C

    #402D2C

    oklch(31.9% 0.028 22.2)

  • #213739

    #213739

    oklch(31.9% 0.028 203.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402D2C

    #402D2C

    oklch(31.9% 0.028 22.2)

  • #3E2D34

    #3E2D34

    oklch(31.9% 0.027 352.2)

  • #3E2F25

    #3E2F25

    oklch(31.9% 0.028 55.2)

Open the analogous palette in the generator

Split complementary

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

  • #402D2C

    #402D2C

    oklch(31.9% 0.028 22.2)

  • #233731

    #233731

    oklch(31.8% 0.028 173.8)

  • #24353F

    #24353F

    oklch(31.9% 0.029 234.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402D2C

    #402D2C

    oklch(31.9% 0.028 22.2)

  • #2A3629

    #2A3629

    oklch(31.8% 0.028 142.9)

  • #2B3341

    #2B3341

    oklch(32% 0.027 261.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402D2C

    #402D2C

    oklch(31.9% 0.028 22.2)

  • #333423

    #333423

    oklch(31.9% 0.029 110.7)

  • #213739

    #213739

    oklch(31.9% 0.028 203.1)

  • #333040

    #333040

    oklch(31.9% 0.028 293.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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