#313137#313137

#313137 is a dark, near-neutral grey. Relative luminance 0.031; OKLCH L 31.6% C 0.011 H 285.8°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#313137
RGBrgb(49, 49, 55)
HSLhsl(240, 6%, 20%)
HSVhsv(240, 11%, 22%)
CMYKcmyk(10.9%, 10.9%, 0%, 78.4%)
CIE-LABlab(20.54, 1.47, -3.80)
CIE-LCHlch(20.54, 4.07, 291.13°)
OKLaboklab(31.55% 0.0029 -0.0102)
OKLCHoklch(31.55% 0.011 285.8)
XYZxyz(3.0544, 3.1254, 4.0560)
Luminance0.0313 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313137 #373731
analogous
#313437 #313137 #343137
triadic
#313137 #373131 #313731
tetradic
#313137 #373134 #373731 #313734
square
#313137 #373134 #373731 #313734
split-complementary
#313137 #373431 #343731
monochromatic
#0E0E10 #141417 #313137 #4E4E57 #6B6B78

Accessibility & contrast

On white

12.92
#313137 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#313137 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313137
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313137#FFFFFF#000000##FFFFFF
##3131371.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303237
Deuteranopia (green-blind)
#303137
Tritanopia (blue-blind)
#303233
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #313137;
/* rgb */ color: rgb(49, 49, 55);
/* oklch */ color: oklch(31.6% 0.011 285.8);
Tailwind
colors: {
  custom: {
    50: '#69696d',
    500: '#313137',
    950: '#000000',
  },
}
SCSS
$custom: #313137;
$custom-light: #69696d;
$custom-dark: #000000;
JSON
{
  "hex": "#313137",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 55
  },
  "hsl": {
    "h": 240,
    "s": 5.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31553,
    "c": 0.0106,
    "h": 285.8
  },
  "luminance": 0.03125
}

Semantic roles & 50–950 ramp

primary
#313137
secondary
#66665E
accent
#AF79AF
background
#F6F6F6
surface
#EBEBEB
border
#C6C6C6
text
#060607
muted
#7A7A7A

Preview Lab

Preview with #313137

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

Preview Lab → · Contrast checker → · Palette generator →

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