#338B2B#338B2B
#338B2B is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.3% C 0.157 H 141.9°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #338B2B |
|---|---|
| RGB | rgb(51, 139, 43) |
| HSL | hsl(115, 53%, 36%) |
| HSV | hsv(115, 69%, 55%) |
| CMYK | cmyk(63.3%, 0%, 69.1%, 45.5%) |
| CIE-LAB | lab(51.09, -45.25, 42.02) |
| CIE-LCH | lch(51.09, 61.75, 137.12°) |
| OKLab | oklab(56.33% -0.1234 0.0966) |
| OKLCH | oklch(56.33% 0.157 141.9) |
| XYZ | xyz(11.0333, 19.3424, 5.4370) |
| Luminance | 0.1934 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.46
Emerald Green
#028F1E
ΔE00 2.80
Irish Green
#019529
ΔE00 3.95
Kelley Green
#009337
ΔE00 4.02
True Green
#089404
ΔE00 4.67
Tree Green
#2A7E19
ΔE00 4.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338B2B #832B8B
analogous
#638B2B #338B2B #2B8B53
triadic
#338B2B #2B338B #8B2B33
tetradic
#338B2B #2B638B #832B8B #8B532B
square
#338B2B #2B638B #832B8B #8B532B
split-complementary
#338B2B #532B8B #8B2B63
monochromatic
#112E0E #225C1D #338B2B #44BA39 #6BCE62
Accessibility & contrast
On white
4.31
#338B2B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.87
#338B2B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338B2B
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338B2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338B2B | 1.00 | 4.31 | 4.87 | 4.87 |
| #FFFFFF | 4.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.87 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.87 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8E7E1E
Deuteranopia (green-blind)
#847734
Tritanopia (blue-blind)
#248777
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #338b2b; /* rgb */ color: rgb(51, 139, 43); /* oklch */ color: oklch(56.3% 0.157 141.9);
Tailwind
colors: {
custom: {
50: '#76ae69',
500: '#338b2b',
950: '#000000',
},
}SCSS
$custom: #338b2b; $custom-light: #76ae69; $custom-dark: #000000;
JSON
{
"hex": "#338b2b",
"rgb": {
"r": 51,
"g": 139,
"b": 43
},
"hsl": {
"h": 115,
"s": 52.747,
"l": 35.686
},
"oklch": {
"l": 0.56331,
"c": 0.15668,
"h": 141.9
},
"luminance": 0.19343
}Semantic roles & 50–950 ramp
primary
#338B2B
secondary
#AD5DB5
accent
#4CDCD0
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A