#402E1E

Closest named color: Pakistan Green (#283618). oklch(31.8% 0.037 62.5), rgb(64, 46, 30).

Aa

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

About this color

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

Hue familyBrowns
Lightnessdark (32%)
Chromamuted (0.037)
Temperaturewarm
Nearest namePakistan Green (#283618)
Black text1.62:1
White text12.90:1

Values

HEX#402E1E
RGBrgb(64, 46, 30)
HSLhsl(28, 36%, 18%)
OKLCHoklch(31.8% 0.037 62.5)

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 #402E1E 12.90:1 AAA Lc -102.3 Preferred for body text
Black text on #402E1E 1.62:1 Fails Lc 0.0 Not readable
#402E1E text on white 12.90:1 AAA Lc 99.0 Preferred for body text
#402E1E text on black 1.62: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

    #F8F5F1

    oklch(97.1% 0.006 75.4)

  2. Step 100

    100

    #F0E8E1

    oklch(93.5% 0.013 63.9)

  3. Step 200

    200

    #E5D6C9

    oklch(88.5% 0.024 63.5)

  4. Step 300

    300

    #D6BBA4

    oklch(80.9% 0.044 62.6)

  5. Step 400

    400

    #C19773

    oklch(70.7% 0.071 61.9)

  6. Step 500

    500

    #B17D4D

    oklch(63.2% 0.091 62.7)

  7. Step 600

    600

    #9C6530

    oklch(55.6% 0.099 62.2)

  8. Step 700

    700

    #855423

    oklch(49.1% 0.091 62.6)

  9. Step 800

    800

    #6C451E

    oklch(42.7% 0.076 63.1)

  10. Step 900

    900

    #583A1E

    oklch(37.7% 0.06 62.4)

  11. Step 950

    950 (this color)

    #402E1E

    oklch(31.8% 0.037 62.5)

Export this scale for Tailwind in the Tailwind colors tool

#402E1E 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)#342F1D0.023
Deuteranopia (no green cones)#38331E0.021
Tritanopia (no blue cones)#452A2A0.029
Achromatopsia (no color)#3232320.037

Harmonies

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

Complementary

The opposite hue (180°).

  • #402E1E

    #402E1E

    oklch(31.8% 0.037 62.5)

  • #213544

    #213544

    oklch(31.9% 0.037 241.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402E1E

    #402E1E

    oklch(31.8% 0.037 62.5)

  • #432B26

    #432B26

    oklch(31.7% 0.037 32.2)

  • #39321B

    #39321B

    oklch(31.8% 0.038 93)

Open the analogous palette in the generator

Split complementary

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

  • #402E1E

    #402E1E

    oklch(31.8% 0.037 62.5)

  • #19373D

    #19373D

    oklch(31.6% 0.037 212.2)

  • #2C3145

    #2C3145

    oklch(31.7% 0.037 273.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402E1E

    #402E1E

    oklch(31.8% 0.037 62.5)

  • #1A3934

    #1A3934

    oklch(31.9% 0.038 182.1)

  • #362E42

    #362E42

    oklch(31.8% 0.037 302.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402E1E

    #402E1E

    oklch(31.8% 0.037 62.5)

  • #233829

    #233829

    oklch(31.8% 0.038 152.8)

  • #213544

    #213544

    oklch(31.9% 0.037 241.8)

  • #3E2B3B

    #3E2B3B

    oklch(31.8% 0.038 332)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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