#335A2F#335A2F

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

Color values

HEX#335A2F
RGBrgb(51, 90, 47)
HSLhsl(114, 31%, 27%)
HSVhsv(114, 48%, 35%)
CMYKcmyk(43.3%, 0%, 47.8%, 64.7%)
CIE-LABlab(34.44, -23.61, 20.57)
CIE-LCHlch(34.44, 31.32, 138.95°)
OKLaboklab(42.67% -0.0644 0.0503)
OKLCHoklch(42.67% 0.082 142)
XYZxyz(5.5343, 8.2211, 3.9840)
Luminance0.0822 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A2F #562F5A
analogous
#495A2F #335A2F #2F5A41
triadic
#335A2F #2F335A #5A2F33
tetradic
#335A2F #2F495A #562F5A #5A412F
square
#335A2F #2F495A #562F5A #5A412F
split-complementary
#335A2F #412F5A #5A2F49
monochromatic
#0B140A #1C321A #335A2F #4A8244 #62A95A

Accessibility & contrast

On white

7.94
#335A2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335A2F
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A2F#FFFFFF#000000##FFFFFF
##335A2F1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C532C
Deuteranopia (green-blind)
#565032
Tritanopia (blue-blind)
#2F5850
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335a2f;
/* rgb */ color: rgb(51, 90, 47);
/* oklch */ color: oklch(42.7% 0.082 142.0);
Tailwind
colors: {
  custom: {
    50: '#6d8968',
    500: '#335a2f',
    950: '#000000',
  },
}
SCSS
$custom: #335a2f;
$custom-light: #6d8968;
$custom-dark: #000000;
JSON
{
  "hex": "#335a2f",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 47
  },
  "hsl": {
    "h": 114.419,
    "s": 31.387,
    "l": 26.863
  },
  "oklch": {
    "l": 0.42669,
    "c": 0.08172,
    "h": 142
  },
  "luminance": 0.08221
}

Semantic roles & 50–950 ramp

primary
#335A2F
secondary
#87598C
accent
#60C8BE
background
#F6F8F6
surface
#ECF0EB
border
#C7CBC6
text
#070B06
muted
#7A7C7A

Preview Lab

Preview with #335A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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