#335B2B#335B2B

#335B2B is a dark, moderate green. Relative luminance 0.084; OKLCH L 42.9% C 0.088 H 140.4°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#335B2B
RGBrgb(51, 91, 43)
HSLhsl(110, 36%, 26%)
HSVhsv(110, 53%, 36%)
CMYKcmyk(44%, 0%, 52.7%, 64.3%)
CIE-LABlab(34.72, -24.74, 23.22)
CIE-LCHlch(34.72, 33.93, 136.82°)
OKLaboklab(42.88% -0.0677 0.0561)
OKLCHoklch(42.88% 0.088 140.4)
XYZxyz(5.5422, 8.3601, 3.6067)
Luminance0.0836 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B2B #532B5B
analogous
#4B5B2B #335B2B #2B5B3B
triadic
#335B2B #2B335B #5B2B33
tetradic
#335B2B #2B4B5B #532B5B #5B3B2B
square
#335B2B #2B4B5B #532B5B #5B3B2B
split-complementary
#335B2B #3B2B5B #5B2B4B
monochromatic
#0C150A #1C3117 #335B2B #4A853F #62AE53

Accessibility & contrast

On white

7.86
#335B2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#335B2B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335B2B
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B2B#FFFFFF#000000##FFFFFF
##335B2B1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5427
Deuteranopia (green-blind)
#58502E
Tritanopia (blue-blind)
#305850
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335b2b;
/* rgb */ color: rgb(51, 91, 43);
/* oklch */ color: oklch(42.9% 0.088 140.4);
Tailwind
colors: {
  custom: {
    50: '#6d8a65',
    500: '#335b2b',
    950: '#000000',
  },
}
SCSS
$custom: #335b2b;
$custom-light: #6d8a65;
$custom-dark: #000000;
JSON
{
  "hex": "#335b2b",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 43
  },
  "hsl": {
    "h": 110,
    "s": 35.821,
    "l": 26.275
  },
  "oklch": {
    "l": 0.4288,
    "c": 0.08787,
    "h": 140.4
  },
  "luminance": 0.0836
}

Semantic roles & 50–950 ramp

primary
#335B2B
secondary
#84558D
accent
#5CCCB9
background
#F6F8F6
surface
#ECF0EB
border
#C7CBC6
text
#070B06
muted
#7A7C7A

Preview Lab

Preview with #335B2B

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

Preview Lab → · Contrast checker → · Palette generator →

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