#40331A
Closest named color: Pakistan Green (#283618). oklch(32.9% 0.043 82.6), rgb(64, 51, 26).
Aa
White text reads best on this color (12.30:1).
About this color
#40331A is a dark, muted brown. In OKLCH its lightness is 33%, its chroma 0.043 and its hue 83°. Its hue sits on the warm side of the wheel. The nearest named color is Pakistan Green (#283618), ΔE 0.043 away. White text reads best on it, at 12.30:1.
| Hue family | Browns |
| Lightness | dark (33%) |
| Chroma | muted (0.043) |
| Temperature | warm |
| Nearest name | Pakistan Green (#283618) |
| Black text | 1.70:1 |
| White text | 12.30:1 |
Values
| HEX | #40331A |
| RGB | rgb(64, 51, 26) |
| HSL | hsl(39, 42%, 18%) |
| OKLCH | oklch(32.9% 0.043 82.6) |
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 #40331A | 12.30:1 | AAA | Lc -101.5 | Preferred for body text |
| Black text on #40331A | 1.70:1 | Fails | Lc 0.0 | Not readable |
| #40331A text on white | 12.30:1 | AAA | Lc 98.0 | Preferred for body text |
| #40331A text on black | 1.70: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 900.
-
Step 50
50
#F7F5F2
oklch(97.1% 0.005 78.3)
-
Step 100
100
#EDE9E3
oklch(93.5% 0.009 78.3)
-
Step 200
200
#DFD8CC
oklch(88.4% 0.018 81.3)
-
Step 300
300
#CBBFAA
oklch(80.9% 0.032 81.7)
-
Step 400
400
#B19E7C
oklch(70.7% 0.052 82)
-
Step 500
500
#9D865A
oklch(63.1% 0.067 83.1)
-
Step 600
600
#886F40
oklch(55.5% 0.072 82.1)
-
Step 700
700
#735D32
oklch(49% 0.067 82.8)
-
Step 800
800
#5E4C2A
oklch(42.7% 0.055 82.2)
-
Step 900
900 (this color)
#40331A
oklch(32.9% 0.043 82.6)
-
Step 950
950
#2D2517
oklch(26.9% 0.027 81.1)
#40331A 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) | #393318 | 0.014 |
| Deuteranopia (no green cones) | #3C361B | 0.011 |
| Tritanopia (no blue cones) | #452F2D | 0.038 |
| Achromatopsia (no color) | #353535 | 0.043 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40331A
#40331A
oklch(32.9% 0.043 82.6)
- #29354B
#29354B
oklch(32.8% 0.043 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 #40331A, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Pakistan Green #283618 ΔE 0.043
- Dark Olive #373E02 ΔE 0.051
- Onyx #343A40 ΔE 0.058
- Charcoal Grey #3C4142 ΔE 0.064
- Chocolate Brown #411900 ΔE 0.073
- Gunmetal #293241 ΔE 0.074
- Dark Brown #341C02 ΔE 0.078
- Evergreen #05472A ΔE 0.083
Use #40331A 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.