#402E29

Closest named color: Onyx (#343A40). oklch(32% 0.028 36.1), rgb(64, 46, 41).

Aa

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

About this color

#402E29 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.79:1.

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

Values

HEX#402E29
RGBrgb(64, 46, 41)
HSLhsl(13, 22%, 21%)
OKLCHoklch(32% 0.028 36.1)

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 #402E29 12.79:1 AAA Lc -102.2 Preferred for body text
Black text on #402E29 1.64:1 Fails Lc 0.0 Not readable
#402E29 text on white 12.79:1 AAA Lc 98.9 Preferred for body text
#402E29 text on black 1.64: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

    #F8F4F3

    oklch(97% 0.005 34.3)

  2. Step 100

    100

    #F0E8E5

    oklch(93.6% 0.01 41.9)

  3. Step 200

    200

    #E5D5D1

    oklch(88.5% 0.019 34.3)

  4. Step 300

    300

    #D5BAB2

    oklch(81% 0.033 37.1)

  5. Step 400

    400

    #BF958A

    oklch(70.6% 0.053 35.1)

  6. Step 500

    500

    #AE7B6D

    oklch(63.1% 0.068 36)

  7. Step 600

    600

    #996455

    oklch(55.6% 0.073 36.5)

  8. Step 700

    700

    #835245

    oklch(49% 0.069 35.6)

  9. Step 800

    800

    #6A4439

    oklch(42.7% 0.056 36.9)

  10. Step 900

    900

    #573931

    oklch(37.7% 0.045 35.6)

  11. Step 950

    950 (this color)

    #402E29

    oklch(32% 0.028 36.1)

Export this scale for Tailwind in the Tailwind colors tool

#402E29 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)#3230290.027
Deuteranopia (no green cones)#3634290.026
Tritanopia (no blue cones)#442C2D0.013
Achromatopsia (no color)#3232320.028

Harmonies

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

Complementary

The opposite hue (180°).

  • #402E29

    #402E29

    oklch(32% 0.028 36.1)

  • #22373C

    #22373C

    oklch(32.1% 0.028 214.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402E29

    #402E29

    oklch(32% 0.028 36.1)

  • #402D31

    #402D31

    oklch(32.1% 0.029 4.9)

  • #3D3024

    #3D3024

    oklch(32% 0.028 64.3)

Open the analogous palette in the generator

Split complementary

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

  • #402E29

    #402E29

    oklch(32% 0.028 36.1)

  • #223835

    #223835

    oklch(32.1% 0.028 185.1)

  • #273541

    #273541

    oklch(32.2% 0.028 244.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402E29

    #402E29

    oklch(32% 0.028 36.1)

  • #27372D

    #27372D

    oklch(31.9% 0.028 157)

  • #2F3241

    #2F3241

    oklch(32.1% 0.027 275.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402E29

    #402E29

    oklch(32% 0.028 36.1)

  • #2F3626

    #2F3626

    oklch(32.1% 0.029 127.2)

  • #22373C

    #22373C

    oklch(32.1% 0.028 214.3)

  • #362F3F

    #362F3F

    oklch(31.9% 0.03 304.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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