#335B40#335B40

#335B40 is a dark, moderate green. Relative luminance 0.086; OKLCH L 43.3% C 0.064 H 153.4°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#335B40
RGBrgb(51, 91, 64)
HSLhsl(140, 28%, 28%)
HSVhsv(140, 44%, 36%)
CMYKcmyk(44%, 0%, 29.7%, 64.3%)
CIE-LABlab(35.11, -20.89, 11.25)
CIE-LCHlch(35.11, 23.73, 151.68°)
OKLaboklab(43.33% -0.0572 0.0286)
OKLCHoklch(43.33% 0.064 153.4)
XYZxyz(6.0314, 8.5558, 6.1831)
Luminance0.0856 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B40 #5B334E
analogous
#3A5B33 #335B40 #335B54
triadic
#335B40 #40335B #5B4033
tetradic
#335B40 #333A5B #5B334E #5B5433
square
#335B40 #333A5B #5B334E #5B5433
split-complementary
#335B40 #54335B #5B333A
monochromatic
#0B140E #1D3424 #335B40 #49825C #62A778

Accessibility & contrast

On white

7.75
#335B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#335B40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335B40
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B40#FFFFFF#000000##FFFFFF
##335B401.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B553E
Deuteranopia (green-blind)
#555142
Tritanopia (blue-blind)
#2B5A54
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #335b40;
/* rgb */ color: rgb(51, 91, 64);
/* oklch */ color: oklch(43.3% 0.064 153.4);
Tailwind
colors: {
  custom: {
    50: '#6d8975',
    500: '#335b40',
    950: '#000000',
  },
}
SCSS
$custom: #335b40;
$custom-light: #6d8975;
$custom-dark: #000000;
JSON
{
  "hex": "#335b40",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 64
  },
  "hsl": {
    "h": 139.5,
    "s": 28.169,
    "l": 27.843
  },
  "oklch": {
    "l": 0.43328,
    "c": 0.06397,
    "h": 153.4
  },
  "luminance": 0.08556
}

Semantic roles & 50–950 ramp

primary
#335B40
secondary
#8C5E7D
accent
#63A5C4
background
#F6F8F7
surface
#EBF0ED
border
#C6CBC8
text
#070B08
muted
#7A7C7B

Preview Lab

Preview with #335B40

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

Preview Lab → · Contrast checker → · Palette generator →

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