#228D1F#228D1F
#228D1F is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.3% C 0.173 H 142.6°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).
Color values
| HEX | #228D1F |
|---|---|
| RGB | rgb(34, 141, 31) |
| HSL | hsl(118, 64%, 34%) |
| HSV | hsv(118, 78%, 55%) |
| CMYK | cmyk(75.9%, 0%, 78%, 44.7%) |
| CIE-LAB | lab(51.25, -50.49, 46.77) |
| CIE-LCH | lch(51.25, 68.82, 137.20°) |
| OKLab | oklab(56.32% -0.1372 0.1051) |
| OKLCH | oklch(56.32% 0.173 142.6) |
| XYZ | xyz(10.4313, 19.4876, 4.5078) |
| Luminance | 0.1949 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 0.85
Emerald Green
#028F1E
ΔE00 1.27
Irish Green
#019529
ΔE00 3.03
True Green
#089404
ΔE00 3.10
Kelley Green
#009337
ΔE00 3.91
Green
#008000
ΔE00 5.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#228D1F #8A1F8D
analogous
#598D1F #228D1F #1F8D53
triadic
#228D1F #1F228D #8D1F22
tetradic
#228D1F #1F598D #8A1F8D #8D531F
square
#228D1F #1F598D #8A1F8D #8D531F
split-complementary
#228D1F #531F8D #8D1F59
monochromatic
#0A2909 #165B14 #228D1F #2EBF2A #52D84E
Accessibility & contrast
On white
4.29
#228D1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.90
#228D1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #228D1F
4.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##228D1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##228D1F | 1.00 | 4.29 | 4.90 | 4.90 |
| #FFFFFF | 4.29 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.90 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.90 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#907F05
Deuteranopia (green-blind)
#84772B
Tritanopia (blue-blind)
#008978
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #228d1f; /* rgb */ color: rgb(34, 141, 31); /* oklch */ color: oklch(56.3% 0.173 142.6);
Tailwind
colors: {
custom: {
50: '#70af63',
500: '#228d1f',
950: '#000000',
},
}SCSS
$custom: #228d1f; $custom-light: #70af63; $custom-dark: #000000;
JSON
{
"hex": "#228d1f",
"rgb": {
"r": 34,
"g": 141,
"b": 31
},
"hsl": {
"h": 118.364,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.56322,
"c": 0.17282,
"h": 142.6
},
"luminance": 0.19489
}Semantic roles & 50–950 ramp
primary
#228D1F
secondary
#B84DBB
accent
#41E7E2
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A