#335B2F#335B2F

#335B2F is a dark, moderate green. Relative luminance 0.084; OKLCH L 43.0% C 0.083 H 142.1°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#335B2F
RGBrgb(51, 91, 47)
HSLhsl(115, 32%, 27%)
HSVhsv(115, 48%, 36%)
CMYKcmyk(44%, 0%, 48.4%, 64.3%)
CIE-LABlab(34.78, -24.11, 21.00)
CIE-LCHlch(34.78, 31.98, 138.94°)
OKLaboklab(42.95% -0.0658 0.0513)
OKLCHoklch(42.95% 0.083 142.1)
XYZxyz(5.6192, 8.3909, 4.0123)
Luminance0.0839 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B2F #572F5B
analogous
#495B2F #335B2F #2F5B41
triadic
#335B2F #2F335B #5B2F33
tetradic
#335B2F #2F495B #572F5B #5B412F
square
#335B2F #2F495B #572F5B #5B412F
split-complementary
#335B2F #412F5B #5B2F49
monochromatic
#0B140A #1C331A #335B2F #4A8344 #62AA5A

Accessibility & contrast

On white

7.84
#335B2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335B2F
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B2F#FFFFFF#000000##FFFFFF
##335B2F1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D542C
Deuteranopia (green-blind)
#575032
Tritanopia (blue-blind)
#2F5950
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335b2f;
/* rgb */ color: rgb(51, 91, 47);
/* oklch */ color: oklch(43.0% 0.083 142.1);
Tailwind
colors: {
  custom: {
    50: '#6d8a68',
    500: '#335b2f',
    950: '#000000',
  },
}
SCSS
$custom: #335b2f;
$custom-light: #6d8a68;
$custom-dark: #000000;
JSON
{
  "hex": "#335b2f",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 47
  },
  "hsl": {
    "h": 114.545,
    "s": 31.884,
    "l": 27.059
  },
  "oklch": {
    "l": 0.42951,
    "c": 0.08341,
    "h": 142.1
  },
  "luminance": 0.08391
}

Semantic roles & 50–950 ramp

primary
#335B2F
secondary
#88598D
accent
#60C8BF
background
#F6F8F6
surface
#ECF0EB
border
#C7CBC6
text
#070B06
muted
#7A7C7A

Preview Lab

Preview with #335B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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