#335B2D#335B2D

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

Color values

HEX#335B2D
RGBrgb(51, 91, 45)
HSLhsl(112, 34%, 27%)
HSVhsv(112, 51%, 36%)
CMYKcmyk(44%, 0%, 50.5%, 64.3%)
CIE-LABlab(34.75, -24.43, 22.12)
CIE-LCHlch(34.75, 32.96, 137.85°)
OKLaboklab(42.91% -0.0667 0.0537)
OKLCHoklch(42.91% 0.086 141.2)
XYZxyz(5.5798, 8.3751, 3.8047)
Luminance0.0838 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B2D #552D5B
analogous
#4A5B2D #335B2D #2D5B3E
triadic
#335B2D #2D335B #5B2D33
tetradic
#335B2D #2D4A5B #552D5B #5B3E2D
square
#335B2D #2D4A5B #552D5B #5B3E2D
split-complementary
#335B2D #3E2D5B #5B2D4A
monochromatic
#0B140A #1C3219 #335B2D #4A8441 #62AC57

Accessibility & contrast

On white

7.85
#335B2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#335B2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335B2D
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B2D#FFFFFF#000000##FFFFFF
##335B2D1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5429
Deuteranopia (green-blind)
#575030
Tritanopia (blue-blind)
#2F5850
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335b2d;
/* rgb */ color: rgb(51, 91, 45);
/* oklch */ color: oklch(42.9% 0.086 141.2);
Tailwind
colors: {
  custom: {
    50: '#6d8a67',
    500: '#335b2d',
    950: '#000000',
  },
}
SCSS
$custom: #335b2d;
$custom-light: #6d8a67;
$custom-dark: #000000;
JSON
{
  "hex": "#335b2d",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 45
  },
  "hsl": {
    "h": 112.174,
    "s": 33.824,
    "l": 26.667
  },
  "oklch": {
    "l": 0.42914,
    "c": 0.08565,
    "h": 141.2
  },
  "luminance": 0.08375
}

Semantic roles & 50–950 ramp

primary
#335B2D
secondary
#86578D
accent
#5ECABC
background
#F6F8F6
surface
#ECF0EB
border
#C7CBC6
text
#070B06
muted
#7A7C7A

Preview Lab

Preview with #335B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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