#402D1F

Closest named color: Pakistan Green (#283618). oklch(31.5% 0.037 57.3), rgb(64, 45, 31).

Aa

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

About this color

#402D1F is a dark, muted brown. In OKLCH its lightness is 32%, its chroma 0.037 and its hue 57°. Its hue sits on the warm side of the wheel. The nearest named color is Pakistan Green (#283618), ΔE 0.054 away. White text reads best on it, at 13.01:1.

Hue familyBrowns
Lightnessdark (32%)
Chromamuted (0.037)
Temperaturewarm
Nearest namePakistan Green (#283618)
Black text1.61:1
White text13.01:1

Values

HEX#402D1F
RGBrgb(64, 45, 31)
HSLhsl(25, 35%, 19%)
OKLCHoklch(31.5% 0.037 57.3)

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

    #F1E8E2

    oklch(93.6% 0.013 56.2)

  3. Step 200

    200

    #E6D6CA

    oklch(88.6% 0.024 59.4)

  4. Step 300

    300

    #D7BAA6

    oklch(80.9% 0.043 56.6)

  5. Step 400

    400

    #C29676

    oklch(70.7% 0.069 57.4)

  6. Step 500

    500

    #B27C52

    oklch(63.2% 0.088 58.2)

  7. Step 600

    600

    #9D6436

    oklch(55.6% 0.096 57.9)

  8. Step 700

    700

    #865229

    oklch(49% 0.089 56.8)

  9. Step 800

    800

    #6D4423

    oklch(42.7% 0.074 57.8)

  10. Step 900

    900

    #593921

    oklch(37.7% 0.059 56.7)

  11. Step 950

    950 (this color)

    #402D1F

    oklch(31.5% 0.037 57.3)

Export this scale for Tailwind in the Tailwind colors tool

#402D1F 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)#332E1E0.025
Deuteranopia (no green cones)#37331F0.025
Tritanopia (no blue cones)#4529290.026
Achromatopsia (no color)#3131310.037

Harmonies

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

Complementary

The opposite hue (180°).

  • #402D1F

    #402D1F

    oklch(31.5% 0.037 57.3)

  • #1F3542

    #1F3542

    oklch(31.7% 0.036 235.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402D1F

    #402D1F

    oklch(31.5% 0.037 57.3)

  • #432B27

    #432B27

    oklch(31.7% 0.037 29.7)

  • #3A311B

    #3A311B

    oklch(31.7% 0.038 88)

Open the analogous palette in the generator

Split complementary

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

  • #402D1F

    #402D1F

    oklch(31.5% 0.037 57.3)

  • #19373B

    #19373B

    oklch(31.5% 0.036 206.8)

  • #293145

    #293145

    oklch(31.5% 0.038 267.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402D1F

    #402D1F

    oklch(31.5% 0.037 57.3)

  • #1C3831

    #1C3831

    oklch(31.6% 0.037 175.9)

  • #342E42

    #342E42

    oklch(31.6% 0.036 298.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402D1F

    #402D1F

    oklch(31.5% 0.037 57.3)

  • #253727

    #253727

    oklch(31.6% 0.037 147.5)

  • #1F3542

    #1F3542

    oklch(31.7% 0.036 235.5)

  • #3C2B3B

    #3C2B3B

    oklch(31.5% 0.037 328.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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