#335642#335642

#335642 is a dark, muted green. Relative luminance 0.078; OKLCH L 42.0% C 0.053 H 158.0°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#335642
RGBrgb(51, 86, 66)
HSLhsl(146, 26%, 27%)
HSVhsv(146, 41%, 34%)
CMYKcmyk(40.7%, 0%, 23.3%, 66.3%)
CIE-LABlab(33.46, -17.76, 7.72)
CIE-LCHlch(33.46, 19.37, 156.51°)
OKLaboklab(42.01% -0.0491 0.0198)
OKLCHoklch(42.01% 0.053 158)
XYZxyz(5.6760, 7.7524, 6.3505)
Luminance0.0775 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335642 #563347
analogous
#365633 #335642 #335654
triadic
#335642 #423356 #564233
tetradic
#335642 #333656 #563347 #565433
square
#335642 #333656 #563347 #565433
split-complementary
#335642 #543356 #563336
monochromatic
#0B130F #1C3025 #335642 #4A7C5F #62A27D

Accessibility & contrast

On white

8.23
#335642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#335642 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335642
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335642#FFFFFF#000000##FFFFFF
##3356421.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#555141
Deuteranopia (green-blind)
#504D43
Tritanopia (blue-blind)
#2C5650
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #335642;
/* rgb */ color: rgb(51, 86, 66);
/* oklch */ color: oklch(42.0% 0.053 158.0);
Tailwind
colors: {
  custom: {
    50: '#6c8676',
    500: '#335642',
    950: '#000000',
  },
}
SCSS
$custom: #335642;
$custom-light: #6c8676;
$custom-dark: #000000;
JSON
{
  "hex": "#335642",
  "rgb": {
    "r": 51,
    "g": 86,
    "b": 66
  },
  "hsl": {
    "h": 145.714,
    "s": 25.547,
    "l": 26.863
  },
  "oklch": {
    "l": 0.42005,
    "c": 0.05296,
    "h": 158
  },
  "luminance": 0.07753
}

Semantic roles & 50–950 ramp

primary
#335642
secondary
#875E75
accent
#669AC2
background
#F6F8F7
surface
#EBEFED
border
#C6CAC8
text
#070B08
muted
#7A7C7B

Preview Lab

Preview with #335642

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

Preview Lab → · Contrast checker → · Palette generator →

#335642 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva