#298F1F#298F1F
#298F1F is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.1% C 0.173 H 141.9°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #298F1F |
|---|---|
| RGB | rgb(41, 143, 31) |
| HSL | hsl(115, 64%, 34%) |
| HSV | hsv(115, 78%, 56%) |
| CMYK | cmyk(71.3%, 0%, 78.3%, 43.9%) |
| CIE-LAB | lab(52.08, -49.90, 47.62) |
| CIE-LCH | lch(52.08, 68.98, 136.34°) |
| OKLab | oklab(57.05% -0.136 0.1068) |
| OKLCH | oklch(57.05% 0.173 141.9) |
| XYZ | xyz(10.9836, 20.2141, 4.6189) |
| Luminance | 0.2021 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Emerald Green
#028F1E
ΔE00 1.65
Forestgreen (CSS)
#228B22
ΔE00 1.71
True Green
#089404
ΔE00 2.56
Irish Green
#019529
ΔE00 2.77
Kelley Green
#009337
ΔE00 4.01
Grass Green
#3F9B0B
ΔE00 5.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#298F1F #851F8F
analogous
#618F1F #298F1F #1F8F4D
triadic
#298F1F #1F298F #8F1F29
tetradic
#298F1F #1F618F #851F8F #8F4D1F
square
#298F1F #1F618F #851F8F #8F4D1F
split-complementary
#298F1F #4D1F8F #8F1F61
monochromatic
#0C2A09 #1B5D14 #298F1F #37C12A #5CD94F
Accessibility & contrast
On white
4.16
#298F1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.04
#298F1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #298F1F
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##298F1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##298F1F | 1.00 | 4.16 | 5.04 | 5.04 |
| #FFFFFF | 4.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.04 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.04 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#938104
Deuteranopia (green-blind)
#87792C
Tritanopia (blue-blind)
#0E8A7A
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #298f1f; /* rgb */ color: rgb(41, 143, 31); /* oklch */ color: oklch(57.1% 0.173 141.9);
Tailwind
colors: {
custom: {
50: '#73b164',
500: '#298f1f',
950: '#000000',
},
}SCSS
$custom: #298f1f; $custom-light: #73b164; $custom-dark: #000000;
JSON
{
"hex": "#298f1f",
"rgb": {
"r": 41,
"g": 143,
"b": 31
},
"hsl": {
"h": 114.643,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.57051,
"c": 0.17291,
"h": 141.9
},
"luminance": 0.20215
}Semantic roles & 50–950 ramp
primary
#298F1F
secondary
#B24EBC
accent
#40E7D8
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A