#402F15

Closest named color: Pakistan Green (#283618). oklch(31.8% 0.047 76.3), rgb(64, 47, 21).

Aa

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

About this color

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

Hue familyBrowns
Lightnessdark (32%)
Chromamuted (0.047)
Temperaturewarm
Nearest namePakistan Green (#283618)
Black text1.63:1
White text12.84:1

Values

HEX#402F15
RGBrgb(64, 47, 21)
HSLhsl(36, 51%, 17%)
OKLCHoklch(31.8% 0.047 76.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 #402F15 12.84:1 AAA Lc -102.2 Preferred for body text
Black text on #402F15 1.63:1 Fails Lc 0.0 Not readable
#402F15 text on white 12.84:1 AAA Lc 98.9 Preferred for body text
#402F15 text on black 1.63: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

    #F8F5F0

    oklch(97.1% 0.007 80.7)

  2. Step 100

    100

    #F0E9DE

    oklch(93.6% 0.017 79.3)

  3. Step 200

    200

    #E5D7C3

    oklch(88.5% 0.031 76.9)

  4. Step 300

    300

    #D6BC99

    oklch(80.9% 0.056 75.1)

  5. Step 400

    400

    #C0995F

    oklch(70.6% 0.089 76.4)

  6. Step 500

    500

    #B07F2D

    oklch(63.1% 0.113 76.4)

  7. Step 600

    600

    #9A6800

    oklch(55.6% 0.117 75.8)

  8. Step 700

    700

    #815700

    oklch(49% 0.103 76.4)

  9. Step 800

    800

    #6A4700

    oklch(42.6% 0.089 76.7)

  10. Step 900

    900

    #583B08

    oklch(37.7% 0.074 75.5)

  11. Step 950

    950 (this color)

    #402F15

    oklch(31.8% 0.047 76.3)

Export this scale for Tailwind in the Tailwind colors tool

#402F15 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)#352F130.022
Deuteranopia (no green cones)#3934160.020
Tritanopia (no blue cones)#462A290.041
Achromatopsia (no color)#3232320.047

Harmonies

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

Complementary

The opposite hue (180°).

  • #402F15

    #402F15

    oklch(31.8% 0.047 76.3)

  • #22334A

    #22334A

    oklch(31.8% 0.047 256.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402F15

    #402F15

    oklch(31.8% 0.047 76.3)

  • #462B1D

    #462B1D

    oklch(31.9% 0.047 47.9)

  • #353416

    #353416

    oklch(31.8% 0.047 107.1)

Open the analogous palette in the generator

Split complementary

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

  • #402F15

    #402F15

    oklch(31.8% 0.047 76.3)

  • #143745

    #143745

    oklch(31.8% 0.047 227.4)

  • #302F49

    #302F49

    oklch(31.8% 0.046 285.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402F15

    #402F15

    oklch(31.8% 0.047 76.3)

  • #0D3A3A

    #0D3A3A

    oklch(31.9% 0.047 195)

  • #3C2B42

    #3C2B42

    oklch(31.9% 0.046 317.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402F15

    #402F15

    oklch(31.8% 0.047 76.3)

  • #183A2D

    #183A2D

    oklch(31.8% 0.047 166.2)

  • #22334A

    #22334A

    oklch(31.8% 0.047 256.2)

  • #442837

    #442837

    oklch(31.8% 0.048 346.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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