#402F02

Closest named color: Pakistan Green (#283618). oklch(31.6% 0.063 86), rgb(64, 47, 2).

Aa

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

About this color

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

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

Values

HEX#402F02
RGBrgb(64, 47, 2)
HSLhsl(44, 94%, 13%)
OKLCHoklch(31.6% 0.063 86)

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

    #F8F5EE

    oklch(97.1% 0.01 87.5)

  2. Step 100

    100

    #F0E9DA

    oklch(93.5% 0.021 85.9)

  3. Step 200

    200

    #E5D8BB

    oklch(88.5% 0.041 86.7)

  4. Step 300

    300

    #D6BE89

    oklch(80.9% 0.075 86.3)

  5. Step 400

    400

    #C29B3D

    oklch(70.8% 0.12 86)

  6. Step 500

    500

    #AC8200

    oklch(63% 0.129 85.7)

  7. Step 600

    600

    #916D00

    oklch(55.6% 0.114 85.6)

  8. Step 700

    700

    #7A5C00

    oklch(49.2% 0.101 86.4)

  9. Step 800

    800

    #644B00

    oklch(42.8% 0.087 86.6)

  10. Step 900

    900

    #543E00

    oklch(37.8% 0.077 85.9)

  11. Step 950

    950 (this color)

    #402F02

    oklch(31.6% 0.063 86)

Export this scale for Tailwind in the Tailwind colors tool

#402F02 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)#372F000.018
Deuteranopia (no green cones)#3B33040.015
Tritanopia (no blue cones)#4629270.057
Achromatopsia (no color)#3131310.063

Harmonies

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

Complementary

The opposite hue (180°).

  • #402F02

    #402F02

    oklch(31.6% 0.063 86)

  • #233052

    #233052

    oklch(31.6% 0.064 266.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402F02

    #402F02

    oklch(31.6% 0.063 86)

  • #4A280E

    #4A280E

    oklch(31.6% 0.063 55)

  • #30360A

    #30360A

    oklch(31.7% 0.064 116.9)

Open the analogous palette in the generator

Split complementary

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

  • #402F02

    #402F02

    oklch(31.6% 0.063 86)

  • #07364D

    #07364D

    oklch(31.5% 0.063 235.9)

  • #352B4E

    #352B4E

    oklch(31.7% 0.062 295.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402F02

    #402F02

    oklch(31.6% 0.063 86)

  • #00393F

    #00393F

    oklch(31.5% 0.054 206.3)

  • #422643

    #422643

    oklch(31.7% 0.062 325.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402F02

    #402F02

    oklch(31.6% 0.063 86)

  • #003B31

    #003B31

    oklch(31.5% 0.058 177.1)

  • #233052

    #233052

    oklch(31.6% 0.064 266.9)

  • #4A2333

    #4A2333

    oklch(31.5% 0.063 355.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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