#335A2B#335A2B

#335A2B is a dark, moderate green. Relative luminance 0.082; OKLCH L 42.6% C 0.086 H 140.3°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#335A2B
RGBrgb(51, 90, 43)
HSLhsl(110, 35%, 26%)
HSVhsv(110, 52%, 35%)
CMYKcmyk(43.3%, 0%, 52.2%, 64.7%)
CIE-LABlab(34.38, -24.25, 22.79)
CIE-LCHlch(34.38, 33.28, 136.77°)
OKLaboklab(42.6% -0.0663 0.0551)
OKLCHoklch(42.6% 0.086 140.3)
XYZxyz(5.4572, 8.1902, 3.5784)
Luminance0.0819 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A2B #522B5A
analogous
#4A5A2B #335A2B #2B5A3A
triadic
#335A2B #2B335A #5A2B33
tetradic
#335A2B #2B4A5A #522B5A #5A3A2B
square
#335A2B #2B4A5A #522B5A #5A3A2B
split-complementary
#335A2B #3A2B5A #5A2B4A
monochromatic
#0C150A #1C3117 #335A2B #4A833F #62AD53

Accessibility & contrast

On white

7.96
#335A2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#335A2B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335A2B
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A2B#FFFFFF#000000##FFFFFF
##335A2B1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5327
Deuteranopia (green-blind)
#574F2E
Tritanopia (blue-blind)
#30574F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335a2b;
/* rgb */ color: rgb(51, 90, 43);
/* oklch */ color: oklch(42.6% 0.086 140.3);
Tailwind
colors: {
  custom: {
    50: '#6d8965',
    500: '#335a2b',
    950: '#000000',
  },
}
SCSS
$custom: #335a2b;
$custom-light: #6d8965;
$custom-dark: #000000;
JSON
{
  "hex": "#335a2b",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 43
  },
  "hsl": {
    "h": 109.787,
    "s": 35.338,
    "l": 26.078
  },
  "oklch": {
    "l": 0.42598,
    "c": 0.08621,
    "h": 140.3
  },
  "luminance": 0.08191
}

Semantic roles & 50–950 ramp

primary
#335A2B
secondary
#83558C
accent
#5CCBB8
background
#F6F8F6
surface
#ECF0EB
border
#C7CBC6
text
#070B06
muted
#7A7C7A

Preview Lab

Preview with #335A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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