#335B28#335B28

#335B28 is a dark, moderate green. Relative luminance 0.083; OKLCH L 42.8% C 0.091 H 139.3°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#335B28
RGBrgb(51, 91, 40)
HSLhsl(107, 39%, 26%)
HSVhsv(107, 56%, 36%)
CMYKcmyk(44%, 0%, 56%, 64.3%)
CIE-LABlab(34.68, -25.18, 24.85)
CIE-LCHlch(34.68, 35.37, 135.38°)
OKLaboklab(42.83% -0.069 0.0595)
OKLCHoklch(42.83% 0.091 139.3)
XYZxyz(5.4891, 8.3389, 3.3274)
Luminance0.0834 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B28 #50285B
analogous
#4C5B28 #335B28 #285B36
triadic
#335B28 #28335B #5B2833
tetradic
#335B28 #284C5B #50285B #5B3628
square
#335B28 #284C5B #50285B #5B3628
split-complementary
#335B28 #36285B #5B284C
monochromatic
#0C1509 #1B3015 #335B28 #4B863B #63B04D

Accessibility & contrast

On white

7.87
#335B28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#335B28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335B28
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B28#FFFFFF#000000##FFFFFF
##335B281.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5423
Deuteranopia (green-blind)
#58502B
Tritanopia (blue-blind)
#30584F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335b28;
/* rgb */ color: rgb(51, 91, 40);
/* oklch */ color: oklch(42.8% 0.091 139.3);
Tailwind
colors: {
  custom: {
    50: '#6e8a63',
    500: '#335b28',
    950: '#000000',
  },
}
SCSS
$custom: #335b28;
$custom-light: #6e8a63;
$custom-dark: #000000;
JSON
{
  "hex": "#335b28",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 40
  },
  "hsl": {
    "h": 107.059,
    "s": 38.931,
    "l": 25.686
  },
  "oklch": {
    "l": 0.42831,
    "c": 0.09109,
    "h": 139.3
  },
  "luminance": 0.08339
}

Semantic roles & 50–950 ramp

primary
#335B28
secondary
#81518E
accent
#59CFB5
background
#F6F8F5
surface
#ECF0EA
border
#C7CBC6
text
#070B05
muted
#7A7C79

Preview Lab

Preview with #335B28

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

Preview Lab → · Contrast checker → · Palette generator →

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