#335A42#335A42

#335A42 is a dark, moderate green. Relative luminance 0.084; OKLCH L 43.1% C 0.060 H 155.8°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#335A42
RGBrgb(51, 90, 66)
HSLhsl(143, 28%, 28%)
HSVhsv(143, 43%, 35%)
CMYKcmyk(43.3%, 0%, 26.7%, 64.7%)
CIE-LABlab(34.82, -19.92, 9.62)
CIE-LCHlch(34.82, 22.12, 154.23°)
OKLaboklab(43.11% -0.0548 0.0246)
OKLCHoklch(43.11% 0.06 155.8)
XYZxyz(6.0044, 8.4091, 6.4599)
Luminance0.0841 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A42 #5A334B
analogous
#375A33 #335A42 #335A56
triadic
#335A42 #42335A #5A4233
tetradic
#335A42 #33375A #5A334B #5A5633
square
#335A42 #33375A #5A334B #5A5633
split-complementary
#335A42 #56335A #5A3337
monochromatic
#0B140E #1D3325 #335A42 #49815F #62A67C

Accessibility & contrast

On white

7.83
#335A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#335A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335A42
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A42#FFFFFF#000000##FFFFFF
##335A421.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A5441
Deuteranopia (green-blind)
#545043
Tritanopia (blue-blind)
#2B5953
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335a42;
/* rgb */ color: rgb(51, 90, 66);
/* oklch */ color: oklch(43.1% 0.060 155.8);
Tailwind
colors: {
  custom: {
    50: '#6d8976',
    500: '#335a42',
    950: '#000000',
  },
}
SCSS
$custom: #335a42;
$custom-light: #6d8976;
$custom-dark: #000000;
JSON
{
  "hex": "#335a42",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 66
  },
  "hsl": {
    "h": 143.077,
    "s": 27.66,
    "l": 27.647
  },
  "oklch": {
    "l": 0.43105,
    "c": 0.06005,
    "h": 155.8
  },
  "luminance": 0.08409
}

Semantic roles & 50–950 ramp

primary
#335A42
secondary
#8B5E7A
accent
#649FC4
background
#F6F8F7
surface
#EBF0ED
border
#C6CBC8
text
#070B08
muted
#7A7C7B

Preview Lab

Preview with #335A42

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

Preview Lab → · Contrast checker → · Palette generator →

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