#2A731F#2A731F
#2A731F is a mid, vivid green. Relative luminance 0.129; OKLCH L 49.2% C 0.138 H 141.2°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).
Color values
| HEX | #2A731F |
|---|---|
| RGB | rgb(42, 115, 31) |
| HSL | hsl(112, 58%, 29%) |
| HSV | hsv(112, 73%, 45%) |
| CMYK | cmyk(63.5%, 0%, 73%, 54.9%) |
| CIE-LAB | lab(42.54, -39.47, 38.01) |
| CIE-LCH | lch(42.54, 54.80, 136.08°) |
| OKLab | oklab(49.16% -0.1079 0.0867) |
| OKLCH | oklch(49.16% 0.138 141.2) |
| XYZ | xyz(7.3325, 12.8520, 3.3903) |
| Luminance | 0.1285 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 4.12
Darkish Green
#287C37
ΔE00 4.61
Green
#008000
ΔE00 5.62
Darkgreen
#006400
ΔE00 5.73
Dark Grass Green
#388004
ΔE00 6.19
Jungle Green
#048243
ΔE00 7.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A731F #681F73
analogous
#54731F #2A731F #1F733E
triadic
#2A731F #1F2A73 #731F2A
tetradic
#2A731F #1F5473 #681F73 #733E1F
square
#2A731F #1F5473 #681F73 #733E1F
split-complementary
#2A731F #3E1F73 #731F54
monochromatic
#091806 #184312 #2A731F #3CA32C #53CC41
Accessibility & contrast
On white
5.88
#2A731F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.57
#2A731F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A731F
5.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A731F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A731F | 1.00 | 5.88 | 3.57 | 5.88 |
| #FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#766812
Deuteranopia (green-blind)
#6D6227
Tritanopia (blue-blind)
#1F6F62
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #2a731f; /* rgb */ color: rgb(42, 115, 31); /* oklch */ color: oklch(49.2% 0.138 141.2);
Tailwind
colors: {
custom: {
50: '#6d9c60',
500: '#2a731f',
950: '#000000',
},
}SCSS
$custom: #2a731f; $custom-light: #6d9c60; $custom-dark: #000000;
JSON
{
"hex": "#2a731f",
"rgb": {
"r": 42,
"g": 115,
"b": 31
},
"hsl": {
"h": 112.143,
"s": 57.534,
"l": 28.627
},
"oklch": {
"l": 0.49157,
"c": 0.13839,
"h": 141.2
},
"luminance": 0.12853
}Semantic roles & 50–950 ramp
primary
#2A731F
secondary
#9A47A7
accent
#47E1CD
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#080E05
muted
#7B7E79