#402D01
Closest named color: Pakistan Green (#283618). oklch(31.1% 0.063 82.9), rgb(64, 45, 1).
Aa
White text reads best on this color (13.17:1).
About this color
#402D01 is a dark, muted brown. In OKLCH its lightness is 31%, its chroma 0.063 and its hue 83°. Its hue sits on the warm side of the wheel. The nearest named color is Pakistan Green (#283618), ΔE 0.047 away. White text reads best on it, at 13.17:1.
| Hue family | Browns |
| Lightness | dark (31%) |
| Chroma | muted (0.063) |
| Temperature | warm |
| Nearest name | Pakistan Green (#283618) |
| Black text | 1.59:1 |
| White text | 13.17:1 |
Values
| HEX | #402D01 |
| RGB | rgb(64, 45, 1) |
| HSL | hsl(42, 97%, 13%) |
| OKLCH | oklch(31.1% 0.063 82.9) |
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.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #402D01 | 13.17:1 | AAA | Lc -102.6 | Preferred for body text |
| Black text on #402D01 | 1.59:1 | Fails | Lc 0.0 | Not readable |
| #402D01 text on white | 13.17:1 | AAA | Lc 99.3 | Preferred for body text |
| #402D01 text on black | 1.59: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.
-
Step 50
50
#F9F5EE
oklch(97.1% 0.01 81.8)
-
Step 100
100
#F1E9DA
oklch(93.6% 0.022 83.3)
-
Step 200
200
#E7D7BB
oklch(88.5% 0.041 81.7)
-
Step 300
300
#D8BD89
oklch(80.9% 0.075 83.4)
-
Step 400
400
#C5993D
oklch(70.7% 0.12 82.8)
-
Step 500
500
#AF8100
oklch(63.2% 0.13 83.3)
-
Step 600
600
#946C00
oklch(55.7% 0.115 82.9)
-
Step 700
700
#7C5A00
oklch(49% 0.101 82.9)
-
Step 800
800
#664A00
oklch(42.8% 0.088 83.6)
-
Step 900
900
#553D00
oklch(37.7% 0.077 83.5)
-
Step 950
950 (this color)
#402D01
oklch(31.1% 0.063 82.9)
#402D01 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.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #352D00 | 0.022 |
| Deuteranopia (no green cones) | #393203 | 0.019 |
| Tritanopia (no blue cones) | #472725 | 0.056 |
| Achromatopsia (no color) | #303030 | 0.063 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #402D01
#402D01
oklch(31.1% 0.063 82.9)
- #1F3050
#1F3050
oklch(31.1% 0.062 262.2)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #402D01, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Pakistan Green #283618 ΔE 0.047
- Dark Olive #373E02 ΔE 0.055
- Chocolate Brown #411900 ΔE 0.058
- Dark Brown #341C02 ΔE 0.061
- Onyx #343A40 ΔE 0.083
- Very Dark Green #062E03 ΔE 0.087
- Jet #212529 ΔE 0.087
- Hunter Green #0B4008 ΔE 0.088
Use #402D01 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.