#335A2E#335A2E

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

Color values

HEX#335A2E
RGBrgb(51, 90, 46)
HSLhsl(113, 32%, 27%)
HSVhsv(113, 49%, 35%)
CMYKcmyk(43.3%, 0%, 48.9%, 64.7%)
CIE-LABlab(34.42, -23.78, 21.13)
CIE-LCHlch(34.42, 31.81, 138.38°)
OKLaboklab(42.65% -0.0649 0.0515)
OKLCHoklch(42.65% 0.083 141.6)
XYZxyz(5.5143, 8.2131, 3.8790)
Luminance0.0821 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A2E #552E5A
analogous
#495A2E #335A2E #2E5A3F
triadic
#335A2E #2E335A #5A2E33
tetradic
#335A2E #2E495A #552E5A #5A3F2E
square
#335A2E #2E495A #552E5A #5A3F2E
split-complementary
#335A2E #3F2E5A #5A2E49
monochromatic
#0B140A #1C3219 #335A2E #4A8343 #62AA59

Accessibility & contrast

On white

7.95
#335A2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335A2E
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A2E#FFFFFF#000000##FFFFFF
##335A2E1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C532B
Deuteranopia (green-blind)
#565031
Tritanopia (blue-blind)
#2F584F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335a2e;
/* rgb */ color: rgb(51, 90, 46);
/* oklch */ color: oklch(42.7% 0.083 141.6);
Tailwind
colors: {
  custom: {
    50: '#6d8967',
    500: '#335a2e',
    950: '#000000',
  },
}
SCSS
$custom: #335a2e;
$custom-light: #6d8967;
$custom-dark: #000000;
JSON
{
  "hex": "#335a2e",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 46
  },
  "hsl": {
    "h": 113.182,
    "s": 32.353,
    "l": 26.667
  },
  "oklch": {
    "l": 0.42651,
    "c": 0.08286,
    "h": 141.6
  },
  "luminance": 0.08213
}

Semantic roles & 50–950 ramp

primary
#335A2E
secondary
#86588C
accent
#5FC9BD
background
#F6F8F6
surface
#ECF0EB
border
#C7CBC6
text
#070B06
muted
#7A7C7A

Preview Lab

Preview with #335A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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