#228F2F#228F2F
#228F2F is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.0% C 0.165 H 144.6°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #228F2F |
|---|---|
| RGB | rgb(34, 143, 47) |
| HSL | hsl(127, 62%, 35%) |
| HSV | hsv(127, 76%, 56%) |
| CMYK | cmyk(76.2%, 0%, 67.1%, 43.9%) |
| CIE-LAB | lab(52.05, -49.70, 41.19) |
| CIE-LCH | lch(52.05, 64.55, 140.35°) |
| OKLab | oklab(57.02% -0.1343 0.0954) |
| OKLCH | oklch(57.02% 0.165 144.6) |
| XYZ | xyz(10.9945, 20.1890, 6.0062) |
| Luminance | 0.2019 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 2.01
Emerald Green
#028F1E
ΔE00 2.03
Kelley Green
#009337
ΔE00 2.10
Irish Green
#019529
ΔE00 2.36
True Green
#089404
ΔE00 4.21
Fern Green
#548D44
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#228F2F #8F2282
analogous
#4C8F22 #228F2F #228F66
triadic
#228F2F #2F228F #8F2F22
tetradic
#228F2F #224C8F #8F2282 #8F6622
square
#228F2F #224C8F #8F2282 #8F6622
split-complementary
#228F2F #66228F #8F224C
monochromatic
#0A2C0E #165E1F #228F2F #2EC03F #55D764
Accessibility & contrast
On white
4.17
#228F2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.04
#228F2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #228F2F
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##228F2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##228F2F | 1.00 | 4.17 | 5.04 | 5.04 |
| #FFFFFF | 4.17 | 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)
#928123
Deuteranopia (green-blind)
#857938
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #228f2f; /* rgb */ color: rgb(34, 143, 47); /* oklch */ color: oklch(57.0% 0.165 144.6);
Tailwind
colors: {
custom: {
50: '#70b16c',
500: '#228f2f',
950: '#000000',
},
}SCSS
$custom: #228f2f; $custom-light: #70b16c; $custom-dark: #000000;
JSON
{
"hex": "#228f2f",
"rgb": {
"r": 34,
"g": 143,
"b": 47
},
"hsl": {
"h": 127.156,
"s": 61.582,
"l": 34.706
},
"oklch": {
"l": 0.57023,
"c": 0.16474,
"h": 144.6
},
"luminance": 0.2019
}Semantic roles & 50–950 ramp
primary
#228F2F
secondary
#BA52AE
accent
#43D1E5
background
#F7FBF6
surface
#EDF6EC
border
#C8D0C7
text
#091107
muted
#7B807A