#335A2D#335A2D

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

Color values

HEX#335A2D
RGBrgb(51, 90, 45)
HSLhsl(112, 33%, 26%)
HSVhsv(112, 50%, 35%)
CMYKcmyk(43.3%, 0%, 50%, 64.7%)
CIE-LABlab(34.41, -23.94, 21.69)
CIE-LCHlch(34.41, 32.30, 137.83°)
OKLaboklab(42.63% -0.0654 0.0527)
OKLCHoklch(42.63% 0.084 141.1)
XYZxyz(5.4948, 8.2053, 3.7764)
Luminance0.0821 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A2D #542D5A
analogous
#4A5A2D #335A2D #2D5A3E
triadic
#335A2D #2D335A #5A2D33
tetradic
#335A2D #2D4A5A #542D5A #5A3E2D
square
#335A2D #2D4A5A #542D5A #5A3E2D
split-complementary
#335A2D #3E2D5A #5A2D4A
monochromatic
#0C140A #1C3119 #335A2D #4A8341 #62AB57

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##335A2D#FFFFFF#000000##FFFFFF
##335A2D1.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)
#5C5329
Deuteranopia (green-blind)
#565030
Tritanopia (blue-blind)
#30584F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335a2d;
/* rgb */ color: rgb(51, 90, 45);
/* oklch */ color: oklch(42.6% 0.084 141.1);
Tailwind
colors: {
  custom: {
    50: '#6d8967',
    500: '#335a2d',
    950: '#000000',
  },
}
SCSS
$custom: #335a2d;
$custom-light: #6d8967;
$custom-dark: #000000;
JSON
{
  "hex": "#335a2d",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 45
  },
  "hsl": {
    "h": 112,
    "s": 33.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.42633,
    "c": 0.08399,
    "h": 141.1
  },
  "luminance": 0.08206
}

Semantic roles & 50–950 ramp

primary
#335A2D
secondary
#85578C
accent
#5EC9BB
background
#F6F8F6
surface
#ECF0EB
border
#C7CBC6
text
#070B06
muted
#7A7C7A

Preview Lab

Preview with #335A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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