#335A3D#335A3D

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

Color values

HEX#335A3D
RGBrgb(51, 90, 61)
HSLhsl(135, 28%, 28%)
HSVhsv(135, 43%, 35%)
CMYKcmyk(43.3%, 0%, 32.2%, 64.7%)
CIE-LABlab(34.71, -21.00, 12.53)
CIE-LCHlch(34.71, 24.46, 149.17°)
OKLaboklab(42.98% -0.0574 0.0317)
OKLCHoklch(42.98% 0.066 151.1)
XYZxyz(5.8634, 8.3527, 5.7172)
Luminance0.0835 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A3D #5A3350
analogous
#3C5A33 #335A3D #335A51
triadic
#335A3D #3D335A #5A3D33
tetradic
#335A3D #333C5A #5A3350 #5A5133
square
#335A3D #333C5A #5A3350 #5A5133
split-complementary
#335A3D #51335A #5A333C
monochromatic
#0B140D #1D3323 #335A3D #498157 #62A673

Accessibility & contrast

On white

7.86
#335A3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335A3D
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A3D#FFFFFF#000000##FFFFFF
##335A3D1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A543B
Deuteranopia (green-blind)
#54503F
Tritanopia (blue-blind)
#2C5952
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335a3d;
/* rgb */ color: rgb(51, 90, 61);
/* oklch */ color: oklch(43.0% 0.066 151.1);
Tailwind
colors: {
  custom: {
    50: '#6d8972',
    500: '#335a3d',
    950: '#000000',
  },
}
SCSS
$custom: #335a3d;
$custom-light: #6d8972;
$custom-dark: #000000;
JSON
{
  "hex": "#335a3d",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 61
  },
  "hsl": {
    "h": 135.385,
    "s": 27.66,
    "l": 27.647
  },
  "oklch": {
    "l": 0.42975,
    "c": 0.06556,
    "h": 151.1
  },
  "luminance": 0.08353
}

Semantic roles & 50–950 ramp

primary
#335A3D
secondary
#8B5E7F
accent
#64ABC4
background
#F6F8F6
surface
#EBF0EC
border
#C6CBC7
text
#070B08
muted
#7A7C7B

Preview Lab

Preview with #335A3D

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

Preview Lab → · Contrast checker → · Palette generator →

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