#335B20#335B20

#335B20 is a dark, moderate green. Relative luminance 0.083; OKLCH L 42.7% C 0.099 H 136.9°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#335B20
RGBrgb(51, 91, 32)
HSLhsl(101, 48%, 24%)
HSVhsv(101, 65%, 36%)
CMYKcmyk(44%, 0%, 64.8%, 64.3%)
CIE-LABlab(34.58, -26.19, 29.00)
CIE-LCHlch(34.58, 39.08, 132.09°)
OKLaboklab(42.72% -0.0724 0.0677)
OKLCHoklch(42.72% 0.099 136.9)
XYZxyz(5.3669, 8.2900, 2.6836)
Luminance0.0829 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B20 #48205B
analogous
#515B20 #335B20 #205B2B
triadic
#335B20 #20335B #5B2033
tetradic
#335B20 #20515B #48205B #5B2B20
square
#335B20 #20515B #48205B #5B2B20
split-complementary
#335B20 #2B205B #5B2051
monochromatic
#0D1708 #1A2E10 #335B20 #4C8830 #66B640

Accessibility & contrast

On white

7.90
#335B20 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#335B20 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335B20
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B20#FFFFFF#000000##FFFFFF
##335B201.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E531A
Deuteranopia (green-blind)
#595025
Tritanopia (blue-blind)
#31584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335b20;
/* rgb */ color: rgb(51, 91, 32);
/* oklch */ color: oklch(42.7% 0.099 136.9);
Tailwind
colors: {
  custom: {
    50: '#6e8a5e',
    500: '#335b20',
    950: '#000000',
  },
}
SCSS
$custom: #335b20;
$custom-light: #6e8a5e;
$custom-dark: #000000;
JSON
{
  "hex": "#335b20",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 32
  },
  "hsl": {
    "h": 100.678,
    "s": 47.967,
    "l": 24.118
  },
  "oklch": {
    "l": 0.42717,
    "c": 0.0991,
    "h": 136.9
  },
  "luminance": 0.0829
}

Semantic roles & 50–950 ramp

primary
#335B20
secondary
#78478F
accent
#50D8AC
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #335B20

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#335B20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva