#335C40#335C40

#335C40 is a dark, moderate green. Relative luminance 0.087; OKLCH L 43.6% C 0.066 H 153.1°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#335C40
RGBrgb(51, 92, 64)
HSLhsl(139, 29%, 28%)
HSVhsv(139, 45%, 36%)
CMYKcmyk(44.6%, 0%, 30.4%, 63.9%)
CIE-LABlab(35.45, -21.41, 11.72)
CIE-LCHlch(35.45, 24.41, 151.30°)
OKLaboklab(43.6% -0.0586 0.0298)
OKLCHoklch(43.6% 0.066 153.1)
XYZxyz(6.1174, 8.7279, 6.2118)
Luminance0.0873 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C40 #5C334F
analogous
#3A5C33 #335C40 #335C54
triadic
#335C40 #40335C #5C4033
tetradic
#335C40 #333A5C #5C334F #5C5433
square
#335C40 #333A5C #5C334F #5C5433
split-complementary
#335C40 #54335C #5C333A
monochromatic
#0B140E #1D3525 #335C40 #49835B #62A878

Accessibility & contrast

On white

7.65
#335C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335C40
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C40#FFFFFF#000000##FFFFFF
##335C401.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C563E
Deuteranopia (green-blind)
#565242
Tritanopia (blue-blind)
#2B5B54
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #335c40;
/* rgb */ color: rgb(51, 92, 64);
/* oklch */ color: oklch(43.6% 0.066 153.1);
Tailwind
colors: {
  custom: {
    50: '#6d8a75',
    500: '#335c40',
    950: '#000000',
  },
}
SCSS
$custom: #335c40;
$custom-light: #6d8a75;
$custom-dark: #000000;
JSON
{
  "hex": "#335c40",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 64
  },
  "hsl": {
    "h": 139.024,
    "s": 28.671,
    "l": 28.039
  },
  "oklch": {
    "l": 0.43604,
    "c": 0.06573,
    "h": 153.1
  },
  "luminance": 0.08728
}

Semantic roles & 50–950 ramp

primary
#335C40
secondary
#8D5E7E
accent
#63A6C5
background
#F6F8F7
surface
#ECF0ED
border
#C7CBC8
text
#070C08
muted
#7A7D7B

Preview Lab

Preview with #335C40

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

Preview Lab → · Contrast checker → · Palette generator →

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