#335B2E#335B2E

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

Color values

HEX#335B2E
RGBrgb(51, 91, 46)
HSLhsl(113, 33%, 27%)
HSVhsv(113, 49%, 36%)
CMYKcmyk(44%, 0%, 49.5%, 64.3%)
CIE-LABlab(34.77, -24.28, 21.56)
CIE-LCHlch(34.77, 32.47, 138.39°)
OKLaboklab(42.93% -0.0662 0.0525)
OKLCHoklch(42.93% 0.085 141.6)
XYZxyz(5.5992, 8.3829, 3.9073)
Luminance0.0838 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B2E #562E5B
analogous
#4A5B2E #335B2E #2E5B40
triadic
#335B2E #2E335B #5B2E33
tetradic
#335B2E #2E4A5B #562E5B #5B402E
square
#335B2E #2E4A5B #562E5B #5B402E
split-complementary
#335B2E #402E5B #5B2E4A
monochromatic
#0B140A #1C3219 #335B2E #4A8443 #62AB59

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##335B2E#FFFFFF#000000##FFFFFF
##335B2E1.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)
#5D542A
Deuteranopia (green-blind)
#575031
Tritanopia (blue-blind)
#2F5950
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335b2e;
/* rgb */ color: rgb(51, 91, 46);
/* oklch */ color: oklch(42.9% 0.085 141.6);
Tailwind
colors: {
  custom: {
    50: '#6d8a67',
    500: '#335b2e',
    950: '#000000',
  },
}
SCSS
$custom: #335b2e;
$custom-light: #6d8a67;
$custom-dark: #000000;
JSON
{
  "hex": "#335b2e",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 46
  },
  "hsl": {
    "h": 113.333,
    "s": 32.847,
    "l": 26.863
  },
  "oklch": {
    "l": 0.42932,
    "c": 0.08454,
    "h": 141.6
  },
  "luminance": 0.08383
}

Semantic roles & 50–950 ramp

primary
#335B2E
secondary
#87588D
accent
#5FC9BD
background
#F6F8F6
surface
#ECF0EB
border
#C7CBC6
text
#070B06
muted
#7A7C7A

Preview Lab

Preview with #335B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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