#313337#313337

#313337 is a dark, near-neutral grey. Relative luminance 0.033; OKLCH L 32.1% C 0.008 H 264.5°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#313337
RGBrgb(49, 51, 55)
HSLhsl(220, 6%, 20%)
HSVhsv(220, 11%, 22%)
CMYKcmyk(10.9%, 7.3%, 0%, 78.4%)
CIE-LABlab(21.19, 0.12, -2.82)
CIE-LCHlch(21.19, 2.83, 272.34°)
OKLaboklab(32.07% -0.0007 -0.0076)
OKLCHoklch(32.07% 0.008 264.5)
XYZxyz(3.1399, 3.2964, 4.0845)
Luminance0.0330 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313337 #373531
analogous
#313637 #313337 #323137
triadic
#313337 #373133 #333731
tetradic
#313337 #373136 #373531 #313732
square
#313337 #373136 #373531 #313732
split-complementary
#313337 #373231 #363731
monochromatic
#0E0F10 #141517 #313337 #4E5157 #6B6F78

Accessibility & contrast

On white

12.66
#313337 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#313337 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313337
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313337#FFFFFF#000000##FFFFFF
##3133371.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323337
Deuteranopia (green-blind)
#313337
Tritanopia (blue-blind)
#303434
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #313337;
/* rgb */ color: rgb(49, 51, 55);
/* oklch */ color: oklch(32.1% 0.008 264.5);
Tailwind
colors: {
  custom: {
    50: '#696a6d',
    500: '#313337',
    950: '#000000',
  },
}
SCSS
$custom: #313337;
$custom-light: #696a6d;
$custom-dark: #000000;
JSON
{
  "hex": "#313337",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 55
  },
  "hsl": {
    "h": 220,
    "s": 5.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.32066,
    "c": 0.00762,
    "h": 264.5
  },
  "luminance": 0.03296
}

Semantic roles & 50–950 ramp

primary
#313337
secondary
#66635E
accent
#9D79AF
background
#F6F6F6
surface
#EBEBEB
border
#C6C6C6
text
#060607
muted
#7A7A7A

Preview Lab

Preview with #313337

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

Preview Lab → · Contrast checker → · Palette generator →

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