#2A4F0C#2A4F0C
#2A4F0C is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.5% C 0.102 H 134.7°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).
Color values
| HEX | #2A4F0C |
|---|---|
| RGB | rgb(42, 79, 12) |
| HSL | hsl(93, 74%, 18%) |
| HSV | hsv(93, 85%, 31%) |
| CMYK | cmyk(46.8%, 0%, 84.8%, 69%) |
| CIE-LAB | lab(29.69, -25.71, 32.76) |
| CIE-LCH | lch(29.69, 41.65, 128.13°) |
| OKLab | oklab(38.53% -0.072 0.0728) |
| OKLCH | oklch(38.53% 0.102 134.7) |
| XYZ | xyz(3.8171, 6.1105, 1.3261) |
| Luminance | 0.0611 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Navy Green
#35530A
ΔE00 2.61
Forrest Green
#154406
ΔE00 4.33
Bottle Green
#044A05
ΔE00 4.66
Forest
#0B5509
ΔE00 4.67
Darkgreen (survey)
#054907
ΔE00 4.79
Racing Green
#014600
ΔE00 5.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A4F0C #310C4F
analogous
#4B4F0C #2A4F0C #0C4F0F
triadic
#2A4F0C #0C2A4F #4F0C2A
tetradic
#2A4F0C #0C4B4F #310C4F #4F0F0C
square
#2A4F0C #0C4B4F #310C4F #4F0F0C
split-complementary
#2A4F0C #0F0C4F #4F0C4B
monochromatic
#0E1B04 #0E1B04 #2A4F0C #468414 #62B91C
Accessibility & contrast
On white
9.45
#2A4F0C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#2A4F0C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A4F0C
9.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A4F0C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A4F0C | 1.00 | 9.45 | 2.22 | 9.45 |
| #FFFFFF | 9.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#524800
Deuteranopia (green-blind)
#4D4513
Tritanopia (blue-blind)
#294C42
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2a4f0c; /* rgb */ color: rgb(42, 79, 12); /* oklch */ color: oklch(38.5% 0.102 134.7);
Tailwind
colors: {
custom: {
50: '#688051',
500: '#2a4f0c',
950: '#000000',
},
}SCSS
$custom: #2a4f0c; $custom-light: #688051; $custom-dark: #000000;
JSON
{
"hex": "#2a4f0c",
"rgb": {
"r": 42,
"g": 79,
"b": 12
},
"hsl": {
"h": 93.134,
"s": 73.626,
"l": 17.843
},
"oklch": {
"l": 0.38529,
"c": 0.10241,
"h": 134.7
},
"luminance": 0.06111
}Semantic roles & 50–950 ramp
primary
#2A4F0C
secondary
#602C8B
accent
#38F09E
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78