#402D22

Closest named color: Onyx (#343A40). oklch(31.6% 0.034 51.2), rgb(64, 45, 34).

Aa

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

About this color

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

Hue familyBrowns
Lightnessdark (32%)
Chromamuted (0.034)
Temperaturewarm
Nearest nameOnyx (#343A40)
Black text1.61:1
White text12.99:1

Values

HEX#402D22
RGBrgb(64, 45, 34)
HSLhsl(22, 31%, 19%)
OKLCHoklch(31.6% 0.034 51.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 #402D22 12.99:1 AAA Lc -102.4 Preferred for body text
Black text on #402D22 1.61:1 Fails Lc 0.0 Not readable
#402D22 text on white 12.99:1 AAA Lc 99.2 Preferred for body text
#402D22 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

    #E6D5CC

    oklch(88.4% 0.023 49.9)

  4. Step 300

    300

    #D7BAAA

    oklch(81% 0.04 50.7)

  5. Step 400

    400

    #C2967C

    oklch(70.8% 0.064 51.9)

  6. Step 500

    500

    #B27B5B

    oklch(63.1% 0.082 50.9)

  7. Step 600

    600

    #9D6341

    oklch(55.6% 0.089 50.5)

  8. Step 700

    700

    #865233

    oklch(49.1% 0.083 50.6)

  9. Step 800

    800

    #6D432A

    oklch(42.6% 0.069 50.8)

  10. Step 900

    900

    #583927

    oklch(37.6% 0.053 50.7)

  11. Step 950

    950 (this color)

    #402D22

    oklch(31.6% 0.034 51.2)

Export this scale for Tailwind in the Tailwind colors tool

#402D22 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)#322F210.027
Deuteranopia (no green cones)#3733220.025
Tritanopia (no blue cones)#452A2A0.021
Achromatopsia (no color)#3131310.034

Harmonies

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

Complementary

The opposite hue (180°).

  • #402D22

    #402D22

    oklch(31.6% 0.034 51.2)

  • #1F3540

    #1F3540

    oklch(31.6% 0.034 231)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402D22

    #402D22

    oklch(31.6% 0.034 51.2)

  • #422B2A

    #422B2A

    oklch(31.7% 0.035 22)

  • #3B301E

    #3B301E

    oklch(31.6% 0.033 79.4)

Open the analogous palette in the generator

Split complementary

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

  • #402D22

    #402D22

    oklch(31.6% 0.034 51.2)

  • #1B3739

    #1B3739

    oklch(31.6% 0.034 201.6)

  • #283243

    #283243

    oklch(31.6% 0.034 260.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402D22

    #402D22

    oklch(31.6% 0.034 51.2)

  • #1F3830

    #1F3830

    oklch(31.7% 0.034 171.6)

  • #322F42

    #322F42

    oklch(31.7% 0.034 291.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402D22

    #402D22

    oklch(31.6% 0.034 51.2)

  • #283626

    #283626

    oklch(31.5% 0.034 141.5)

  • #1F3540

    #1F3540

    oklch(31.6% 0.034 231)

  • #3A2C3C

    #3A2C3C

    oklch(31.6% 0.034 322.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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