#335142#335142

#335142 is a dark, muted teal. Relative luminance 0.070; OKLCH L 40.6% C 0.044 H 161.9°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#335142
RGBrgb(51, 81, 66)
HSLhsl(150, 23%, 26%)
HSVhsv(150, 37%, 32%)
CMYKcmyk(37%, 0%, 18.5%, 68.2%)
CIE-LABlab(31.77, -14.97, 5.32)
CIE-LCHlch(31.77, 15.89, 160.44°)
OKLaboklab(40.64% -0.0418 0.0137)
OKLCHoklch(40.64% 0.044 161.9)
XYZxyz(5.2907, 6.9817, 6.2220)
Luminance0.0698 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335142 #513342
analogous
#335133 #335142 #335151
triadic
#335142 #423351 #514233
tetradic
#335142 #333351 #513342 #515133
square
#335142 #333351 #513342 #515133
split-complementary
#335142 #513351 #513333
monochromatic
#0C130F #1B2B23 #335142 #4B7761 #629C7F

Accessibility & contrast

On white

8.76
#335142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#335142 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335142
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335142#FFFFFF#000000##FFFFFF
##3351421.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504D41
Deuteranopia (green-blind)
#4B4943
Tritanopia (blue-blind)
#2C514D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #335142;
/* rgb */ color: rgb(51, 81, 66);
/* oklch */ color: oklch(40.6% 0.044 161.9);
Tailwind
colors: {
  custom: {
    50: '#6c8276',
    500: '#335142',
    950: '#000000',
  },
}
SCSS
$custom: #335142;
$custom-light: #6c8276;
$custom-dark: #000000;
JSON
{
  "hex": "#335142",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 66
  },
  "hsl": {
    "h": 150,
    "s": 22.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.40637,
    "c": 0.04403,
    "h": 161.9
  },
  "luminance": 0.06982
}

Semantic roles & 50–950 ramp

primary
#335142
secondary
#825E70
accent
#6994BF
background
#F6F7F7
surface
#EBEEED
border
#C6C9C8
text
#070A08
muted
#7A7C7B

Preview Lab

Preview with #335142

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

Preview Lab → · Contrast checker → · Palette generator →

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