#335A29#335A29

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

Color values

HEX#335A29
RGBrgb(51, 90, 41)
HSLhsl(108, 37%, 26%)
HSVhsv(108, 54%, 35%)
CMYKcmyk(43.3%, 0%, 54.4%, 64.7%)
CIE-LABlab(34.35, -24.54, 23.89)
CIE-LCHlch(34.35, 34.25, 135.77°)
OKLaboklab(42.56% -0.0672 0.0574)
OKLCHoklch(42.56% 0.088 139.5)
XYZxyz(5.4214, 8.1759, 3.3898)
Luminance0.0818 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A29 #50295A
analogous
#4B5A29 #335A29 #295A37
triadic
#335A29 #29335A #5A2933
tetradic
#335A29 #294B5A #50295A #5A3729
square
#335A29 #294B5A #50295A #5A3729
split-complementary
#335A29 #37295A #5A294B
monochromatic
#0C150A #1B3016 #335A29 #4B843C #63AE4F

Accessibility & contrast

On white

7.97
#335A29 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335A29
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A29#FFFFFF#000000##FFFFFF
##335A291.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5325
Deuteranopia (green-blind)
#574F2C
Tritanopia (blue-blind)
#30574F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335a29;
/* rgb */ color: rgb(51, 90, 41);
/* oklch */ color: oklch(42.6% 0.088 139.5);
Tailwind
colors: {
  custom: {
    50: '#6d8964',
    500: '#335a29',
    950: '#000000',
  },
}
SCSS
$custom: #335a29;
$custom-light: #6d8964;
$custom-dark: #000000;
JSON
{
  "hex": "#335a29",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 41
  },
  "hsl": {
    "h": 107.755,
    "s": 37.405,
    "l": 25.686
  },
  "oklch": {
    "l": 0.42564,
    "c": 0.0884,
    "h": 139.5
  },
  "luminance": 0.08176
}

Semantic roles & 50–950 ramp

primary
#335A29
secondary
#81528D
accent
#5ACDB6
background
#F6F8F6
surface
#ECF0EB
border
#C7CBC6
text
#070B05
muted
#7A7C7A

Preview Lab

Preview with #335A29

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

Preview Lab → · Contrast checker → · Palette generator →

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