#228E1F#228E1F
#228E1F is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.6% C 0.174 H 142.6°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #228E1F |
|---|---|
| RGB | rgb(34, 142, 31) |
| HSL | hsl(118, 64%, 34%) |
| HSV | hsv(118, 78%, 56%) |
| CMYK | cmyk(76.1%, 0%, 78.2%, 44.3%) |
| CIE-LAB | lab(51.59, -50.83, 47.10) |
| CIE-LCH | lch(51.59, 69.29, 137.18°) |
| OKLab | oklab(56.6% -0.1381 0.1058) |
| OKLCH | oklch(56.6% 0.174 142.6) |
| XYZ | xyz(10.5794, 19.7838, 4.5572) |
| Luminance | 0.1978 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Emerald Green
#028F1E
ΔE00 1.17
Forestgreen (CSS)
#228B22
ΔE00 1.18
Irish Green
#019529
ΔE00 2.76
True Green
#089404
ΔE00 2.80
Kelley Green
#009337
ΔE00 3.80
Green
#008000
ΔE00 5.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#228E1F #8B1F8E
analogous
#5A8E1F #228E1F #1F8E54
triadic
#228E1F #1F228E #8E1F22
tetradic
#228E1F #1F5A8E #8B1F8E #8E541F
square
#228E1F #1F5A8E #8B1F8E #8E541F
split-complementary
#228E1F #541F8E #8E1F5A
monochromatic
#0A2A09 #165C14 #228E1F #2EC02A #53D94F
Accessibility & contrast
On white
4.24
#228E1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.96
#228E1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #228E1F
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##228E1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##228E1F | 1.00 | 4.24 | 4.96 | 4.96 |
| #FFFFFF | 4.24 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.96 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.96 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#918004
Deuteranopia (green-blind)
#85782C
Tritanopia (blue-blind)
#008A79
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #228e1f; /* rgb */ color: rgb(34, 142, 31); /* oklch */ color: oklch(56.6% 0.174 142.6);
Tailwind
colors: {
custom: {
50: '#70b063',
500: '#228e1f',
950: '#000000',
},
}SCSS
$custom: #228e1f; $custom-light: #70b063; $custom-dark: #000000;
JSON
{
"hex": "#228e1f",
"rgb": {
"r": 34,
"g": 142,
"b": 31
},
"hsl": {
"h": 118.378,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.56604,
"c": 0.17395,
"h": 142.6
},
"luminance": 0.19785
}Semantic roles & 50–950 ramp
primary
#228E1F
secondary
#B84DBB
accent
#41E7E3
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A