#335B2F#335B2F
#335B2F is a dark, moderate green. Relative luminance 0.084; OKLCH L 43.0% C 0.083 H 142.1°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).
Color values
| HEX | #335B2F |
|---|---|
| RGB | rgb(51, 91, 47) |
| HSL | hsl(115, 32%, 27%) |
| HSV | hsv(115, 48%, 36%) |
| CMYK | cmyk(44%, 0%, 48.4%, 64.3%) |
| CIE-LAB | lab(34.78, -24.11, 21.00) |
| CIE-LCH | lch(34.78, 31.98, 138.94°) |
| OKLab | oklab(42.95% -0.0658 0.0513) |
| OKLCH | oklch(42.95% 0.083 142.1) |
| XYZ | xyz(5.6192, 8.3909, 4.0123) |
| Luminance | 0.0839 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forest Green
#2D5A27
ΔE00 1.92
Pine
#2B5D34
ΔE00 2.24
Hunter Green
#355E3B
ΔE00 2.98
Spruce
#0A5F38
ΔE00 5.94
Deep Green
#02590F
ΔE00 7.05
Forest
#0B5509
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#335B2F #572F5B
analogous
#495B2F #335B2F #2F5B41
triadic
#335B2F #2F335B #5B2F33
tetradic
#335B2F #2F495B #572F5B #5B412F
square
#335B2F #2F495B #572F5B #5B412F
split-complementary
#335B2F #412F5B #5B2F49
monochromatic
#0B140A #1C331A #335B2F #4A8344 #62AA5A
Accessibility & contrast
On white
7.84
#335B2F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.68
#335B2F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #335B2F
7.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##335B2F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##335B2F | 1.00 | 7.84 | 2.68 | 7.84 |
| #FFFFFF | 7.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5D542C
Deuteranopia (green-blind)
#575032
Tritanopia (blue-blind)
#2F5950
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #335b2f; /* rgb */ color: rgb(51, 91, 47); /* oklch */ color: oklch(43.0% 0.083 142.1);
Tailwind
colors: {
custom: {
50: '#6d8a68',
500: '#335b2f',
950: '#000000',
},
}SCSS
$custom: #335b2f; $custom-light: #6d8a68; $custom-dark: #000000;
JSON
{
"hex": "#335b2f",
"rgb": {
"r": 51,
"g": 91,
"b": 47
},
"hsl": {
"h": 114.545,
"s": 31.884,
"l": 27.059
},
"oklch": {
"l": 0.42951,
"c": 0.08341,
"h": 142.1
},
"luminance": 0.08391
}Semantic roles & 50–950 ramp
primary
#335B2F
secondary
#88598D
accent
#60C8BF
background
#F6F8F6
surface
#ECF0EB
border
#C7CBC6
text
#070B06
muted
#7A7C7A