#40311F
Closest named color: Pakistan Green (#283618). oklch(32.5% 0.036 71.1), rgb(64, 49, 31).
Aa
White text reads best on this color (12.52:1).
About this color
#40311F is a dark, muted brown. In OKLCH its lightness is 32%, its chroma 0.036 and its hue 71°. Its hue sits on the warm side of the wheel. The nearest named color is Pakistan Green (#283618), ΔE 0.048 away. White text reads best on it, at 12.52:1.
| Hue family | Browns |
| Lightness | dark (32%) |
| Chroma | muted (0.036) |
| Temperature | warm |
| Nearest name | Pakistan Green (#283618) |
| Black text | 1.67:1 |
| White text | 12.52:1 |
Values
| HEX | #40311F |
| RGB | rgb(64, 49, 31) |
| HSL | hsl(33, 35%, 19%) |
| OKLCH | oklch(32.5% 0.036 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 #40311F | 12.52:1 | AAA | Lc -101.8 | Preferred for body text |
| Black text on #40311F | 1.67:1 | Fails | Lc 0.0 | Not readable |
| #40311F text on white | 12.52:1 | AAA | Lc 98.4 | Preferred for body text |
| #40311F text on black | 1.67: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
#F7F5F3
oklch(97.1% 0.003 67.8)
-
Step 100
100
#EDE9E4
oklch(93.6% 0.008 73.7)
-
Step 200
200
#E0D8CF
oklch(88.6% 0.015 70.9)
-
Step 300
300
#CCBEAE
oklch(80.9% 0.027 71.1)
-
Step 400
400
#B29D83
oklch(70.8% 0.044 72.9)
-
Step 500
500
#9F8464
oklch(63% 0.056 71.3)
-
Step 600
600
#8A6D4B
oklch(55.5% 0.061 70.5)
-
Step 700
700
#755B3C
oklch(49% 0.057 70.8)
-
Step 800
800
#5F4B32
oklch(42.7% 0.047 72.3)
-
Step 900
900 (this color)
#40311F
oklch(32.5% 0.036 71.1)
-
Step 950
950
#2E251A
oklch(27.1% 0.024 72.2)
#40311F 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) | #36321E | 0.019 |
| Deuteranopia (no green cones) | #3A351F | 0.017 |
| Tritanopia (no blue cones) | #452D2C | 0.030 |
| Achromatopsia (no color) | #343434 | 0.036 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40311F
#40311F
oklch(32.5% 0.036 71.1)
- #263646
#263646
oklch(32.6% 0.036 249)
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 #40311F, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Pakistan Green #283618 ΔE 0.048
- Onyx #343A40 ΔE 0.054
- Dark Olive #373E02 ΔE 0.062
- Charcoal Grey #3C4142 ΔE 0.062
- Gunmetal #293241 ΔE 0.067
- Chocolate Brown #411900 ΔE 0.069
- Dark Brown #341C02 ΔE 0.074
- Space Cadet #2B2D42 ΔE 0.075
Use #40311F 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.