#402F1E
Closest named color: Pakistan Green (#283618). oklch(32% 0.037 65.8), rgb(64, 47, 30).
Aa
White text reads best on this color (12.77:1).
About this color
#402F1E is a dark, muted brown. In OKLCH its lightness is 32%, its chroma 0.037 and its hue 66°. Its hue sits on the warm side of the wheel. The nearest named color is Pakistan Green (#283618), ΔE 0.050 away. White text reads best on it, at 12.77:1.
| Hue family | Browns |
| Lightness | dark (32%) |
| Chroma | muted (0.037) |
| Temperature | warm |
| Nearest name | Pakistan Green (#283618) |
| Black text | 1.64:1 |
| White text | 12.77:1 |
Values
| HEX | #402F1E |
| RGB | rgb(64, 47, 30) |
| HSL | hsl(30, 36%, 18%) |
| OKLCH | oklch(32% 0.037 65.8) |
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 #402F1E | 12.77:1 | AAA | Lc -102.2 | Preferred for body text |
| Black text on #402F1E | 1.64:1 | Fails | Lc 0.0 | Not readable |
| #402F1E text on white | 12.77:1 | AAA | Lc 98.8 | Preferred for body text |
| #402F1E 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.
-
Step 50
50
#F8F5F1
oklch(97.1% 0.006 75.4)
-
Step 100
100
#F0E8E1
oklch(93.5% 0.013 63.9)
-
Step 200
200
#E5D6C9
oklch(88.5% 0.024 63.5)
-
Step 300
300
#D5BCA3
oklch(81% 0.044 67.1)
-
Step 400
400
#BF9871
oklch(70.6% 0.071 66.3)
-
Step 500
500
#AF7E4C
oklch(63.1% 0.09 65.5)
-
Step 600
600
#9A672E
oklch(55.7% 0.098 66.2)
-
Step 700
700
#835520
oklch(49% 0.091 66.2)
-
Step 800
800
#6B461D
oklch(42.8% 0.075 65.9)
-
Step 900
900
#573B1D
oklch(37.8% 0.059 66.2)
-
Step 950
950 (this color)
#402F1E
oklch(32% 0.037 65.8)
#402F1E 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) | #35301D | 0.021 |
| Deuteranopia (no green cones) | #39341E | 0.020 |
| Tritanopia (no blue cones) | #452B2B | 0.030 |
| Achromatopsia (no color) | #323232 | 0.037 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #402F1E
#402F1E
oklch(32% 0.037 65.8)
- #233545
#233545
oklch(32.1% 0.037 246.1)
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 #402F1E, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Pakistan Green #283618 ΔE 0.050
- Onyx #343A40 ΔE 0.057
- Chocolate Brown #411900 ΔE 0.063
- Dark Olive #373E02 ΔE 0.067
- Gunmetal #293241 ΔE 0.067
- Charcoal Grey #3C4142 ΔE 0.067
- Dark Brown #341C02 ΔE 0.069
- Space Cadet #2B2D42 ΔE 0.074
Use #402F1E 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.