#228F1F#228F1F
#228F1F is a mid, vivid green. Relative luminance 0.201; OKLCH L 56.9% C 0.175 H 142.6°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #228F1F |
|---|---|
| RGB | rgb(34, 143, 31) |
| HSL | hsl(118, 64%, 34%) |
| HSV | hsv(118, 78%, 56%) |
| CMYK | cmyk(76.2%, 0%, 78.3%, 43.9%) |
| CIE-LAB | lab(51.93, -51.16, 47.43) |
| CIE-LCH | lch(51.93, 69.76, 137.17°) |
| OKLab | oklab(56.89% -0.139 0.1064) |
| OKLCH | oklch(56.89% 0.175 142.6) |
| XYZ | xyz(10.7288, 20.0827, 4.6070) |
| Luminance | 0.2008 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Emerald Green
#028F1E
ΔE00 1.17
Forestgreen (CSS)
#228B22
ΔE00 1.53
Irish Green
#019529
ΔE00 2.51
True Green
#089404
ΔE00 2.53
Kelley Green
#009337
ΔE00 3.72
Grass Green
#3F9B0B
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#228F1F #8C1F8F
analogous
#5A8F1F #228F1F #1F8F54
triadic
#228F1F #1F228F #8F1F22
tetradic
#228F1F #1F5A8F #8C1F8F #8F541F
square
#228F1F #1F5A8F #8C1F8F #8F541F
split-complementary
#228F1F #541F8F #8F1F5A
monochromatic
#0A2A09 #165D14 #228F1F #2EC12A #53D94F
Accessibility & contrast
On white
4.19
#228F1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.02
#228F1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #228F1F
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##228F1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##228F1F | 1.00 | 4.19 | 5.02 | 5.02 |
| #FFFFFF | 4.19 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.02 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.02 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#928104
Deuteranopia (green-blind)
#86792C
Tritanopia (blue-blind)
#008B7A
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #228f1f; /* rgb */ color: rgb(34, 143, 31); /* oklch */ color: oklch(56.9% 0.175 142.6);
Tailwind
colors: {
custom: {
50: '#71b163',
500: '#228f1f',
950: '#000000',
},
}SCSS
$custom: #228f1f; $custom-light: #71b163; $custom-dark: #000000;
JSON
{
"hex": "#228f1f",
"rgb": {
"r": 34,
"g": 143,
"b": 31
},
"hsl": {
"h": 118.393,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.56885,
"c": 0.17509,
"h": 142.6
},
"luminance": 0.20084
}Semantic roles & 50–950 ramp
primary
#228F1F
secondary
#B94EBC
accent
#40E7E3
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A