#402D15
Closest named color: Pakistan Green (#283618). oklch(31.3% 0.046 71.1), rgb(64, 45, 21).
Aa
White text reads best on this color (13.09:1).
About this color
#402D15 is a dark, muted brown. In OKLCH its lightness is 31%, its chroma 0.046 and its hue 71°. 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 13.09:1.
| Hue family | Browns |
| Lightness | dark (31%) |
| Chroma | muted (0.046) |
| Temperature | warm |
| Nearest name | Pakistan Green (#283618) |
| Black text | 1.60:1 |
| White text | 13.09:1 |
Values
| HEX | #402D15 |
| RGB | rgb(64, 45, 21) |
| HSL | hsl(33, 51%, 17%) |
| OKLCH | oklch(31.3% 0.046 71.1) |
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 #402D15 | 13.09:1 | AAA | Lc -102.5 | Preferred for body text |
| Black text on #402D15 | 1.60:1 | Fails | Lc 0.0 | Not readable |
| #402D15 text on white | 13.09:1 | AAA | Lc 99.3 | Preferred for body text |
| #402D15 text on black | 1.60: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
#F9F5F0
oklch(97.2% 0.008 73.7)
-
Step 100
100
#F1E8DF
oklch(93.6% 0.016 67.6)
-
Step 200
200
#E6D6C4
oklch(88.4% 0.03 70.7)
-
Step 300
300
#D8BB9A
oklch(80.9% 0.056 70.5)
-
Step 400
400
#C39762
oklch(70.6% 0.087 70.8)
-
Step 500
500
#B47D32
oklch(63.2% 0.113 71.3)
-
Step 600
600
#9E6500
oklch(55.5% 0.12 71.1)
-
Step 700
700
#855500
oklch(49.1% 0.105 71.8)
-
Step 800
800
#6E4500
oklch(42.8% 0.092 71.2)
-
Step 900
900
#5A3A0C
oklch(37.8% 0.074 70.8)
-
Step 950
950 (this color)
#402D15
oklch(31.3% 0.046 71.1)
#402D15 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) | #342E13 | 0.024 |
| Deuteranopia (no green cones) | #383216 | 0.021 |
| Tritanopia (no blue cones) | #462827 | 0.038 |
| Achromatopsia (no color) | #313131 | 0.046 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #402D15
#402D15
oklch(31.3% 0.046 71.1)
- #1F3348
#1F3348
oklch(31.4% 0.046 250.6)
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 #402D15, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Pakistan Green #283618 ΔE 0.049
- Chocolate Brown #411900 ΔE 0.055
- Dark Brown #341C02 ΔE 0.061
- Dark Olive #373E02 ΔE 0.065
- Onyx #343A40 ΔE 0.068
- Jet #212529 ΔE 0.076
- Gunmetal #293241 ΔE 0.076
- Charcoal Grey #3C4142 ΔE 0.077
Use #402D15 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.