#402D21

Closest named color: Onyx (#343A40). oklch(31.6% 0.035 53.4), rgb(64, 45, 33).

Aa

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

About this color

#402D21 is a dark, muted brown. In OKLCH its lightness is 32%, its chroma 0.035 and its hue 53°. Its hue sits on the warm side of the wheel. The nearest named color is Onyx (#343A40), ΔE 0.056 away. White text reads best on it, at 13.00:1.

Hue familyBrowns
Lightnessdark (32%)
Chromamuted (0.035)
Temperaturewarm
Nearest nameOnyx (#343A40)
Black text1.61:1
White text13.00:1

Values

HEX#402D21
RGBrgb(64, 45, 33)
HSLhsl(23, 32%, 19%)
OKLCHoklch(31.6% 0.035 53.4)

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 #402D21 13.00:1 AAA Lc -102.5 Preferred for body text
Black text on #402D21 1.61:1 Fails Lc 0.0 Not readable
#402D21 text on white 13.00:1 AAA Lc 99.2 Preferred for body text
#402D21 text on black 1.61: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

    #F9F4F2

    oklch(97% 0.006 43.3)

  2. Step 100

    100

    #F1E8E3

    oklch(93.7% 0.012 51.3)

  3. Step 200

    200

    #E6D5CB

    oklch(88.4% 0.023 52.7)

  4. Step 300

    300

    #D7BAA8

    oklch(80.9% 0.042 53.8)

  5. Step 400

    400

    #C2967A

    oklch(70.7% 0.066 53.8)

  6. Step 500

    500

    #B27B58

    oklch(63.1% 0.085 53.1)

  7. Step 600

    600

    #9D643D

    oklch(55.7% 0.091 54.1)

  8. Step 700

    700

    #86522F

    oklch(49% 0.085 53.3)

  9. Step 800

    800

    #6D4428

    oklch(42.8% 0.07 54)

  10. Step 900

    900

    #583925

    oklch(37.6% 0.054 53.2)

  11. Step 950

    950 (this color)

    #402D21

    oklch(31.6% 0.035 53.4)

Export this scale for Tailwind in the Tailwind colors tool

#402D21 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)#322F200.027
Deuteranopia (no green cones)#3733210.025
Tritanopia (no blue cones)#45292A0.025
Achromatopsia (no color)#3131310.035

Harmonies

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

Complementary

The opposite hue (180°).

  • #402D21

    #402D21

    oklch(31.6% 0.035 53.4)

  • #1F3541

    #1F3541

    oklch(31.6% 0.035 233.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402D21

    #402D21

    oklch(31.6% 0.035 53.4)

  • #422B29

    #422B29

    oklch(31.6% 0.035 24.7)

  • #3A301D

    #3A301D

    oklch(31.5% 0.034 82.9)

Open the analogous palette in the generator

Split complementary

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

  • #402D21

    #402D21

    oklch(31.6% 0.035 53.4)

  • #1B373A

    #1B373A

    oklch(31.6% 0.034 204.5)

  • #293244

    #293244

    oklch(31.7% 0.035 263.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402D21

    #402D21

    oklch(31.6% 0.035 53.4)

  • #1E3830

    #1E3830

    oklch(31.7% 0.035 172.3)

  • #322F42

    #322F42

    oklch(31.7% 0.034 291.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402D21

    #402D21

    oklch(31.6% 0.035 53.4)

  • #273726

    #273726

    oklch(31.7% 0.036 143.2)

  • #1F3541

    #1F3541

    oklch(31.6% 0.035 233.3)

  • #3B2C3C

    #3B2C3C

    oklch(31.7% 0.035 324.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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