#2A6F1F#2A6F1F
#2A6F1F is a mid, vivid green. Relative luminance 0.120; OKLCH L 48.0% C 0.133 H 141.1°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).
Color values
| HEX | #2A6F1F |
|---|---|
| RGB | rgb(42, 111, 31) |
| HSL | hsl(112, 56%, 28%) |
| HSV | hsv(112, 72%, 44%) |
| CMYK | cmyk(62.2%, 0%, 72.1%, 56.5%) |
| CIE-LAB | lab(41.15, -37.90, 36.55) |
| CIE-LCH | lch(41.15, 52.65, 136.04°) |
| OKLab | oklab(48.01% -0.1036 0.0837) |
| OKLCH | oklch(48.01% 0.133 141.1) |
| XYZ | xyz(6.8863, 11.9594, 3.2416) |
| Luminance | 0.1196 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkgreen
#006400
ΔE00 4.79
Darkish Green
#287C37
ΔE00 5.41
Tree Green
#2A7E19
ΔE00 5.50
Green
#008000
ΔE00 6.91
Dark Grass Green
#388004
ΔE00 7.41
Deep Green
#02590F
ΔE00 7.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A6F1F #641F6F
analogous
#526F1F #2A6F1F #1F6F3C
triadic
#2A6F1F #1F2A6F #6F1F2A
tetradic
#2A6F1F #1F526F #641F6F #6F3C1F
square
#2A6F1F #1F526F #641F6F #6F3C1F
split-complementary
#2A6F1F #3C1F6F #6F1F52
monochromatic
#091807 #183F12 #2A6F1F #3C9F2C #52C93F
Accessibility & contrast
On white
6.19
#2A6F1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.39
#2A6F1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A6F1F
6.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A6F1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A6F1F | 1.00 | 6.19 | 3.39 | 6.19 |
| #FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#726513
Deuteranopia (green-blind)
#695F26
Tritanopia (blue-blind)
#206B5F
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #2a6f1f; /* rgb */ color: rgb(42, 111, 31); /* oklch */ color: oklch(48.0% 0.133 141.1);
Tailwind
colors: {
custom: {
50: '#6c995f',
500: '#2a6f1f',
950: '#000000',
},
}SCSS
$custom: #2a6f1f; $custom-light: #6c995f; $custom-dark: #000000;
JSON
{
"hex": "#2a6f1f",
"rgb": {
"r": 42,
"g": 111,
"b": 31
},
"hsl": {
"h": 111.75,
"s": 56.338,
"l": 27.843
},
"oklch": {
"l": 0.48011,
"c": 0.13316,
"h": 141.1
},
"luminance": 0.1196
}Semantic roles & 50–950 ramp
primary
#2A6F1F
secondary
#9647A3
accent
#48E0CB
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E05
muted
#7A7E79