#298D1F#298D1F
#298D1F is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.5% C 0.171 H 141.8°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).
Color values
| HEX | #298D1F |
|---|---|
| RGB | rgb(41, 141, 31) |
| HSL | hsl(115, 64%, 34%) |
| HSV | hsv(115, 78%, 55%) |
| CMYK | cmyk(70.9%, 0%, 78%, 44.7%) |
| CIE-LAB | lab(51.40, -49.21, 46.96) |
| CIE-LCH | lch(51.40, 68.02, 136.34°) |
| OKLab | oklab(56.49% -0.1341 0.1054) |
| OKLCH | oklch(56.49% 0.171 141.8) |
| XYZ | xyz(10.6861, 19.6190, 4.5197) |
| Luminance | 0.1962 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.11
Emerald Green
#028F1E
ΔE00 1.70
True Green
#089404
ΔE00 3.10
Irish Green
#019529
ΔE00 3.24
Kelley Green
#009337
ΔE00 4.18
Green
#008000
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#298D1F #831F8D
analogous
#608D1F #298D1F #1F8D4C
triadic
#298D1F #1F298D #8D1F29
tetradic
#298D1F #1F608D #831F8D #8D4C1F
square
#298D1F #1F608D #831F8D #8D4C1F
split-complementary
#298D1F #4C1F8D #8D1F60
monochromatic
#0C2909 #1A5B14 #298D1F #38BF2A #5BD84E
Accessibility & contrast
On white
4.26
#298D1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.92
#298D1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #298D1F
4.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##298D1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##298D1F | 1.00 | 4.26 | 4.92 | 4.92 |
| #FFFFFF | 4.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.92 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.92 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#907F05
Deuteranopia (green-blind)
#85772B
Tritanopia (blue-blind)
#0F8978
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #298d1f; /* rgb */ color: rgb(41, 141, 31); /* oklch */ color: oklch(56.5% 0.171 141.8);
Tailwind
colors: {
custom: {
50: '#73af63',
500: '#298d1f',
950: '#000000',
},
}SCSS
$custom: #298d1f; $custom-light: #73af63; $custom-dark: #000000;
JSON
{
"hex": "#298d1f",
"rgb": {
"r": 41,
"g": 141,
"b": 31
},
"hsl": {
"h": 114.545,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.56491,
"c": 0.1706,
"h": 141.8
},
"luminance": 0.1962
}Semantic roles & 50–950 ramp
primary
#298D1F
secondary
#B14DBB
accent
#41E7D8
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A