#335342#335342

#335342 is a dark, muted green. Relative luminance 0.073; OKLCH L 41.2% C 0.048 H 160.2°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#335342
RGBrgb(51, 83, 66)
HSLhsl(148, 24%, 26%)
HSVhsv(148, 39%, 33%)
CMYKcmyk(38.6%, 0%, 20.5%, 67.5%)
CIE-LABlab(32.44, -16.10, 6.28)
CIE-LCHlch(32.44, 17.28, 158.69°)
OKLaboklab(41.18% -0.0448 0.0162)
OKLCHoklch(41.18% 0.048 160.2)
XYZxyz(5.4415, 7.2834, 6.2723)
Luminance0.0728 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335342 #533344
analogous
#345333 #335342 #335352
triadic
#335342 #423353 #534233
tetradic
#335342 #333453 #533344 #535233
square
#335342 #333453 #533344 #535233
split-complementary
#335342 #523353 #533334
monochromatic
#0C130F #1C2D24 #335342 #4A7960 #629E7E

Accessibility & contrast

On white

8.55
#335342 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#335342 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335342
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335342#FFFFFF#000000##FFFFFF
##3353421.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524F41
Deuteranopia (green-blind)
#4D4B43
Tritanopia (blue-blind)
#2C534E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #335342;
/* rgb */ color: rgb(51, 83, 66);
/* oklch */ color: oklch(41.2% 0.048 160.2);
Tailwind
colors: {
  custom: {
    50: '#6c8376',
    500: '#335342',
    950: '#000000',
  },
}
SCSS
$custom: #335342;
$custom-light: #6c8376;
$custom-dark: #000000;
JSON
{
  "hex": "#335342",
  "rgb": {
    "r": 51,
    "g": 83,
    "b": 66
  },
  "hsl": {
    "h": 148.125,
    "s": 23.881,
    "l": 26.275
  },
  "oklch": {
    "l": 0.41183,
    "c": 0.04761,
    "h": 160.2
  },
  "luminance": 0.07284
}

Semantic roles & 50–950 ramp

primary
#335342
secondary
#845E72
accent
#6797C0
background
#F6F8F7
surface
#EBEFED
border
#C6CAC8
text
#070A08
muted
#7A7C7B

Preview Lab

Preview with #335342

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

Preview Lab → · Contrast checker → · Palette generator →

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