#335A2F#335A2F
#335A2F is a dark, moderate green. Relative luminance 0.082; OKLCH L 42.7% C 0.082 H 142.0°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).
Color values
| HEX | #335A2F |
|---|---|
| RGB | rgb(51, 90, 47) |
| HSL | hsl(114, 31%, 27%) |
| HSV | hsv(114, 48%, 35%) |
| CMYK | cmyk(43.3%, 0%, 47.8%, 64.7%) |
| CIE-LAB | lab(34.44, -23.61, 20.57) |
| CIE-LCH | lch(34.44, 31.32, 138.95°) |
| OKLab | oklab(42.67% -0.0644 0.0503) |
| OKLCH | oklch(42.67% 0.082 142) |
| XYZ | xyz(5.5343, 8.2211, 3.9840) |
| Luminance | 0.0822 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forest Green
#2D5A27
ΔE00 2.11
Pine
#2B5D34
ΔE00 2.34
Hunter Green
#355E3B
ΔE00 2.93
Spruce
#0A5F38
ΔE00 6.03
Pine Green
#0A481E
ΔE00 7.12
Deep Green
#02590F
ΔE00 7.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#335A2F #562F5A
analogous
#495A2F #335A2F #2F5A41
triadic
#335A2F #2F335A #5A2F33
tetradic
#335A2F #2F495A #562F5A #5A412F
square
#335A2F #2F495A #562F5A #5A412F
split-complementary
#335A2F #412F5A #5A2F49
monochromatic
#0B140A #1C321A #335A2F #4A8244 #62A95A
Accessibility & contrast
On white
7.94
#335A2F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.64
#335A2F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #335A2F
7.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##335A2F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##335A2F | 1.00 | 7.94 | 2.64 | 7.94 |
| #FFFFFF | 7.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5C532C
Deuteranopia (green-blind)
#565032
Tritanopia (blue-blind)
#2F5850
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #335a2f; /* rgb */ color: rgb(51, 90, 47); /* oklch */ color: oklch(42.7% 0.082 142.0);
Tailwind
colors: {
custom: {
50: '#6d8968',
500: '#335a2f',
950: '#000000',
},
}SCSS
$custom: #335a2f; $custom-light: #6d8968; $custom-dark: #000000;
JSON
{
"hex": "#335a2f",
"rgb": {
"r": 51,
"g": 90,
"b": 47
},
"hsl": {
"h": 114.419,
"s": 31.387,
"l": 26.863
},
"oklch": {
"l": 0.42669,
"c": 0.08172,
"h": 142
},
"luminance": 0.08221
}Semantic roles & 50–950 ramp
primary
#335A2F
secondary
#87598C
accent
#60C8BE
background
#F6F8F6
surface
#ECF0EB
border
#C7CBC6
text
#070B06
muted
#7A7C7A