#40831B
Closest named color: Dark Grass Green (#388004). oklch(54.5% 0.151 137.1), rgb(64, 131, 27).
Aa
White text reads best on this color (4.68:1).
About this color
#40831B is a medium-dark, vivid green. In OKLCH its lightness is 55%, its chroma 0.151 and its hue 137°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Grass Green (#388004), ΔE 0.016 away. White text reads best on it, at 4.68:1.
| Hue family | Greens |
| Lightness | medium-dark (55%) |
| Chroma | vivid (0.151) |
| Temperature | in between |
| Nearest name | Dark Grass Green (#388004) |
| Black text | 4.48:1 |
| White text | 4.68:1 |
Values
| HEX | #40831B |
| RGB | rgb(64, 131, 27) |
| HSL | hsl(99, 66%, 31%) |
| OKLCH | oklch(54.5% 0.151 137.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 #40831B | 4.68:1 | AA | Lc -77.7 | Fine for body text |
| Black text on #40831B | 4.48:1 | AA large text | Lc 31.8 | Non-text elements, placeholder text |
| #40831B text on white | 4.68:1 | AA | Lc 72.3 | Content text, not long reading |
| #40831B text on black | 4.48:1 | AA large text | Lc -29.4 | Dividers and decoration only |
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 600.
-
Step 50
50
#F3F7F1
oklch(97.1% 0.009 134.9)
-
Step 100
100
#E4EDE0
oklch(93.6% 0.02 135.8)
-
Step 200
200
#CEDFC7
oklch(88.4% 0.037 136.5)
-
Step 300
300
#ACCBA0
oklch(80.8% 0.068 137)
-
Step 400
400
#80B06C
oklch(70.6% 0.108 136.9)
-
Step 500
500
#5E9C43
oklch(63% 0.138 137.2)
-
Step 600
600 (this color)
#40831B
oklch(54.5% 0.151 137.1)
-
Step 700
700
#357210
oklch(49.2% 0.141 137)
-
Step 800
800
#2C5D12
oklch(42.8% 0.117 137.2)
-
Step 900
900
#284C18
oklch(37.6% 0.09 137.3)
-
Step 950
950
#182D0F
oklch(27.1% 0.058 137.2)
#40831B 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) | #887701 | 0.095 |
| Deuteranopia (no green cones) | #7F7226 | 0.095 |
| Tritanopia (no blue cones) | #3C7E6F | 0.106 |
| Achromatopsia (no color) | #747474 | 0.151 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40831B
#40831B
oklch(54.5% 0.151 137.1)
- #934FA9
#934FA9
oklch(54.5% 0.151 317.3)
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 #40831B, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Grass Green #388004 ΔE 0.016
- Tree Green #2A7E19 ΔE 0.025
- Forest Green #228B22 ΔE 0.027
- Green #008000 ΔE 0.039
- Sap Green #5C8B15 ΔE 0.040
- Emerald Green #028F1E ΔE 0.042
- Jungle Green #048243 ΔE 0.043
- Olive Green #677A04 ΔE 0.047
Use #40831B 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.