#402F1D

Closest named color: Pakistan Green (#283618). oklch(32% 0.038 67.3), rgb(64, 47, 29).

Aa

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

About this color

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

Hue familyBrowns
Lightnessdark (32%)
Chromamuted (0.038)
Temperaturewarm
Nearest namePakistan Green (#283618)
Black text1.64:1
White text12.78:1

Values

HEX#402F1D
RGBrgb(64, 47, 29)
HSLhsl(31, 38%, 18%)
OKLCHoklch(32% 0.038 67.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 #402F1D 12.78:1 AAA Lc -102.2 Preferred for body text
Black text on #402F1D 1.64:1 Fails Lc 0.0 Not readable
#402F1D text on white 12.78:1 AAA Lc 98.8 Preferred for body text
#402F1D text on black 1.64: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

    #E5D6C8

    oklch(88.4% 0.025 65.5)

  4. Step 300

    300

    #D5BCA2

    oklch(81% 0.046 68.2)

  5. Step 400

    400

    #BF986F

    oklch(70.6% 0.073 67.6)

  6. Step 500

    500

    #AF7E49

    oklch(63.1% 0.093 66.9)

  7. Step 600

    600

    #9A6729

    oklch(55.6% 0.101 68)

  8. Step 700

    700

    #84551C

    oklch(49.1% 0.094 67)

  9. Step 800

    800

    #6B461A

    oklch(42.7% 0.077 67.4)

  10. Step 900

    900

    #573B1B

    oklch(37.7% 0.061 67.7)

  11. Step 950

    950 (this color)

    #402F1D

    oklch(32% 0.038 67.3)

Export this scale for Tailwind in the Tailwind colors tool

#402F1D 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)#35301C0.021
Deuteranopia (no green cones)#39341D0.020
Tritanopia (no blue cones)#452B2A0.030
Achromatopsia (no color)#3232320.038

Harmonies

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

Complementary

The opposite hue (180°).

  • #402F1D

    #402F1D

    oklch(32% 0.038 67.3)

  • #233545

    #233545

    oklch(32.1% 0.037 246.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402F1D

    #402F1D

    oklch(32% 0.038 67.3)

  • #442C25

    #442C25

    oklch(32% 0.038 36.9)

  • #38331B

    #38331B

    oklch(32% 0.039 97.9)

Open the analogous palette in the generator

Split complementary

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

  • #402F1D

    #402F1D

    oklch(32% 0.038 67.3)

  • #1A3840

    #1A3840

    oklch(32.1% 0.038 217.3)

  • #2E3146

    #2E3146

    oklch(32% 0.038 277.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402F1D

    #402F1D

    oklch(32% 0.038 67.3)

  • #193936

    #193936

    oklch(31.9% 0.038 187.5)

  • #382E42

    #382E42

    oklch(32.1% 0.037 307.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402F1D

    #402F1D

    oklch(32% 0.038 67.3)

  • #22392B

    #22392B

    oklch(32.1% 0.038 156.7)

  • #233545

    #233545

    oklch(32.1% 0.037 246.1)

  • #402B3A

    #402B3A

    oklch(32% 0.039 337.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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