#402C22

Closest named color: Onyx (#343A40). oklch(31.4% 0.034 47.6), rgb(64, 44, 34).

Aa

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

About this color

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

Hue familyBrowns
Lightnessdark (31%)
Chromamuted (0.034)
Temperaturewarm
Nearest nameOnyx (#343A40)
Black text1.60:1
White text13.11:1

Values

HEX#402C22
RGBrgb(64, 44, 34)
HSLhsl(20, 31%, 19%)
OKLCHoklch(31.4% 0.034 47.6)

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 #402C22 13.11:1 AAA Lc -102.6 Preferred for body text
Black text on #402C22 1.60:1 Fails Lc 0.0 Not readable
#402C22 text on white 13.11:1 AAA Lc 99.4 Preferred for body text
#402C22 text on black 1.60: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

    #E7D5CD

    oklch(88.5% 0.023 45.6)

  4. Step 300

    300

    #D8B9AA

    oklch(80.8% 0.041 47.4)

  5. Step 400

    400

    #C3957E

    oklch(70.7% 0.065 47.8)

  6. Step 500

    500

    #B37A5D

    oklch(63.1% 0.083 47.7)

  7. Step 600

    600

    #9E6243

    oklch(55.5% 0.09 47.6)

  8. Step 700

    700

    #875134

    oklch(49.1% 0.084 48.2)

  9. Step 800

    800

    #6E422C

    oklch(42.6% 0.07 46.8)

  10. Step 900

    900

    #593828

    oklch(37.6% 0.054 46.5)

  11. Step 950

    950 (this color)

    #402C22

    oklch(31.4% 0.034 47.6)

Export this scale for Tailwind in the Tailwind colors tool

#402C22 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)#312E210.029
Deuteranopia (no green cones)#3632220.026
Tritanopia (no blue cones)#4529290.020
Achromatopsia (no color)#3030300.035

Harmonies

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

Complementary

The opposite hue (180°).

  • #402C22

    #402C22

    oklch(31.4% 0.034 47.6)

  • #1E353F

    #1E353F

    oklch(31.5% 0.034 227.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402C22

    #402C22

    oklch(31.4% 0.034 47.6)

  • #412A2B

    #412A2B

    oklch(31.3% 0.034 16.4)

  • #3B2F1D

    #3B2F1D

    oklch(31.3% 0.034 77.1)

Open the analogous palette in the generator

Split complementary

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

  • #402C22

    #402C22

    oklch(31.4% 0.034 47.6)

  • #1A3737

    #1A3737

    oklch(31.4% 0.035 195.5)

  • #263243

    #263243

    oklch(31.4% 0.035 257.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402C22

    #402C22

    oklch(31.4% 0.034 47.6)

  • #1F372E

    #1F372E

    oklch(31.4% 0.034 168.3)

  • #302F42

    #302F42

    oklch(31.5% 0.034 286.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402C22

    #402C22

    oklch(31.4% 0.034 47.6)

  • #293624

    #293624

    oklch(31.5% 0.036 137.2)

  • #1E353F

    #1E353F

    oklch(31.5% 0.034 227.5)

  • #392C3D

    #392C3D

    oklch(31.5% 0.035 318.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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