#228A1F#228A1F
#228A1F is a mid, vivid green. Relative luminance 0.186; OKLCH L 55.5% C 0.169 H 142.6°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).
Color values
| HEX | #228A1F |
|---|---|
| RGB | rgb(34, 138, 31) |
| HSL | hsl(118, 63%, 33%) |
| HSV | hsv(118, 78%, 54%) |
| CMYK | cmyk(75.4%, 0%, 77.5%, 45.9%) |
| CIE-LAB | lab(50.23, -49.49, 45.76) |
| CIE-LCH | lch(50.23, 67.40, 137.24°) |
| OKLab | oklab(55.48% -0.1345 0.103) |
| OKLCH | oklch(55.48% 0.169 142.6) |
| XYZ | xyz(9.9949, 18.6148, 4.3623) |
| Luminance | 0.1862 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 0.46
Emerald Green
#028F1E
ΔE00 1.97
Irish Green
#019529
ΔE00 3.95
True Green
#089404
ΔE00 4.04
Green
#008000
ΔE00 4.16
Tree Green
#2A7E19
ΔE00 4.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#228A1F #871F8A
analogous
#578A1F #228A1F #1F8A51
triadic
#228A1F #1F228A #8A1F22
tetradic
#228A1F #1F578A #871F8A #8A511F
square
#228A1F #1F578A #871F8A #8A511F
split-complementary
#228A1F #511F8A #8A1F57
monochromatic
#092609 #165814 #228A1F #2EBC2A #50D74C
Accessibility & contrast
On white
4.45
#228A1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.72
#228A1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #228A1F
4.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##228A1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##228A1F | 1.00 | 4.45 | 4.72 | 4.72 |
| #FFFFFF | 4.45 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.72 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.72 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7C07
Deuteranopia (green-blind)
#82742B
Tritanopia (blue-blind)
#008676
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #228a1f; /* rgb */ color: rgb(34, 138, 31); /* oklch */ color: oklch(55.5% 0.169 142.6);
Tailwind
colors: {
custom: {
50: '#6fad63',
500: '#228a1f',
950: '#000000',
},
}SCSS
$custom: #228a1f; $custom-light: #6fad63; $custom-dark: #000000;
JSON
{
"hex": "#228a1f",
"rgb": {
"r": 34,
"g": 138,
"b": 31
},
"hsl": {
"h": 118.318,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.55476,
"c": 0.16938,
"h": 142.6
},
"luminance": 0.18616
}Semantic roles & 50–950 ramp
primary
#228A1F
secondary
#B74BBA
accent
#41E6E2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A