#335C42#335C42

#335C42 is a dark, moderate green. Relative luminance 0.088; OKLCH L 43.7% C 0.064 H 154.9°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#335C42
RGBrgb(51, 92, 66)
HSLhsl(142, 29%, 28%)
HSVhsv(142, 45%, 36%)
CMYKcmyk(44.6%, 0%, 28.3%, 63.9%)
CIE-LABlab(35.50, -20.98, 10.56)
CIE-LCHlch(35.50, 23.49, 153.28°)
OKLaboklab(43.66% -0.0576 0.0269)
OKLCHoklch(43.66% 0.064 154.9)
XYZxyz(6.1753, 8.7510, 6.5169)
Luminance0.0875 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C42 #5C334D
analogous
#385C33 #335C42 #335C56
triadic
#335C42 #42335C #5C4233
tetradic
#335C42 #33385C #5C334D #5C5633
square
#335C42 #33385C #5C334D #5C5633
split-complementary
#335C42 #56335C #5C3338
monochromatic
#0B140E #1D3526 #335C42 #49835E #62A87B

Accessibility & contrast

On white

7.64
#335C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#335C42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335C42
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C42#FFFFFF#000000##FFFFFF
##335C421.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5640
Deuteranopia (green-blind)
#555244
Tritanopia (blue-blind)
#2A5B55
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #335c42;
/* rgb */ color: rgb(51, 92, 66);
/* oklch */ color: oklch(43.7% 0.064 154.9);
Tailwind
colors: {
  custom: {
    50: '#6d8a76',
    500: '#335c42',
    950: '#000000',
  },
}
SCSS
$custom: #335c42;
$custom-light: #6d8a76;
$custom-dark: #000000;
JSON
{
  "hex": "#335c42",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 66
  },
  "hsl": {
    "h": 141.951,
    "s": 28.671,
    "l": 28.039
  },
  "oklch": {
    "l": 0.43656,
    "c": 0.06355,
    "h": 154.9
  },
  "luminance": 0.08751
}

Semantic roles & 50–950 ramp

primary
#335C42
secondary
#8D5E7C
accent
#63A1C5
background
#F6F8F7
surface
#ECF0ED
border
#C7CBC8
text
#070C08
muted
#7A7D7B

Preview Lab

Preview with #335C42

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

Preview Lab → · Contrast checker → · Palette generator →

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