#338F1F#338F1F
#338F1F is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.3% C 0.169 H 140.6°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).
Color values
| HEX | #338F1F |
|---|---|
| RGB | rgb(51, 143, 31) |
| HSL | hsl(109, 64%, 34%) |
| HSV | hsv(109, 78%, 56%) |
| CMYK | cmyk(64.3%, 0%, 78.3%, 43.9%) |
| CIE-LAB | lab(52.34, -47.73, 47.97) |
| CIE-LCH | lch(52.34, 67.67, 134.86°) |
| OKLab | oklab(57.34% -0.1307 0.1074) |
| OKLCH | oklch(57.34% 0.169 140.6) |
| XYZ | xyz(11.4345, 20.4466, 4.6401) |
| Luminance | 0.2045 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 2.26
Emerald Green
#028F1E
ΔE00 2.50
True Green
#089404
ΔE00 2.82
Irish Green
#019529
ΔE00 3.35
Kelley Green
#009337
ΔE00 4.60
Grass Green
#3F9B0B
ΔE00 4.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338F1F #7B1F8F
analogous
#6B8F1F #338F1F #1F8F43
triadic
#338F1F #1F338F #8F1F33
tetradic
#338F1F #1F6B8F #7B1F8F #8F431F
square
#338F1F #1F6B8F #7B1F8F #8F431F
split-complementary
#338F1F #431F8F #8F1F6B
monochromatic
#0F2A09 #215D14 #338F1F #45C12A #68D94F
Accessibility & contrast
On white
4.13
#338F1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.09
#338F1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338F1F
5.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338F1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338F1F | 1.00 | 4.13 | 5.09 | 5.09 |
| #FFFFFF | 4.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.09 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.09 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#938104
Deuteranopia (green-blind)
#887A2C
Tritanopia (blue-blind)
#248A7A
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #338f1f; /* rgb */ color: rgb(51, 143, 31); /* oklch */ color: oklch(57.3% 0.169 140.6);
Tailwind
colors: {
custom: {
50: '#77b164',
500: '#338f1f',
950: '#000000',
},
}SCSS
$custom: #338f1f; $custom-light: #77b164; $custom-dark: #000000;
JSON
{
"hex": "#338f1f",
"rgb": {
"r": 51,
"g": 143,
"b": 31
},
"hsl": {
"h": 109.286,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.5734,
"c": 0.16921,
"h": 140.6
},
"luminance": 0.20448
}Semantic roles & 50–950 ramp
primary
#338F1F
secondary
#A84EBC
accent
#40E7CA
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A