#335B1F#335B1F
#335B1F is a dark, moderate green. Relative luminance 0.083; OKLCH L 42.7% C 0.100 H 136.7°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).
Color values
| HEX | #335B1F |
|---|---|
| RGB | rgb(51, 91, 31) |
| HSL | hsl(100, 49%, 24%) |
| HSV | hsv(100, 66%, 36%) |
| CMYK | cmyk(44%, 0%, 65.9%, 64.3%) |
| CIE-LAB | lab(34.57, -26.31, 29.50) |
| CIE-LCH | lch(34.57, 39.52, 131.73°) |
| OKLab | oklab(42.71% -0.0727 0.0687) |
| OKLCH | oklch(42.71% 0.1 136.7) |
| XYZ | xyz(5.3535, 8.2846, 2.6131) |
| Luminance | 0.0828 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Forest Green
#2D5A27
ΔE00 2.55
Navy Green
#35530A
ΔE00 4.28
Forest
#0B5509
ΔE00 5.08
Deep Green
#02590F
ΔE00 5.24
Pine
#2B5D34
ΔE00 5.59
Army Green
#4B5D16
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#335B1F #471F5B
analogous
#515B1F #335B1F #1F5B29
triadic
#335B1F #1F335B #5B1F33
tetradic
#335B1F #1F515B #471F5B #5B291F
square
#335B1F #1F515B #471F5B #5B291F
split-complementary
#335B1F #291F5B #5B1F51
monochromatic
#0D1708 #192D0F #335B1F #4D892F #66B63E
Accessibility & contrast
On white
7.90
#335B1F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.66
#335B1F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #335B1F
7.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##335B1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##335B1F | 1.00 | 7.90 | 2.66 | 7.90 |
| #FFFFFF | 7.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5E5318
Deuteranopia (green-blind)
#595024
Tritanopia (blue-blind)
#31584E
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #335b1f; /* rgb */ color: rgb(51, 91, 31); /* oklch */ color: oklch(42.7% 0.100 136.7);
Tailwind
colors: {
custom: {
50: '#6e8a5d',
500: '#335b1f',
950: '#000000',
},
}SCSS
$custom: #335b1f; $custom-light: #6e8a5d; $custom-dark: #000000;
JSON
{
"hex": "#335b1f",
"rgb": {
"r": 51,
"g": 91,
"b": 31
},
"hsl": {
"h": 100,
"s": 49.18,
"l": 23.922
},
"oklch": {
"l": 0.42705,
"c": 0.10003,
"h": 136.7
},
"luminance": 0.08285
}Semantic roles & 50–950 ramp
primary
#335B1F
secondary
#774690
accent
#4FD9AB
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79