#313131#313131

#313131 is a dark, near-neutral grey. Relative luminance 0.031; OKLCH L 31.3% C 0.000 H 0.0°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#313131
RGBrgb(49, 49, 49)
HSLhsl(0, 0%, 19%)
HSVhsv(0, 0%, 19%)
CMYKcmyk(0%, 0%, 0%, 80.8%)
CIE-LABlab(20.33, 0.00, -0.00)
CIE-LCHlch(20.33, 0.00, 308.66°)
OKLaboklab(31.32% 0 0)
OKLCHoklch(31.32% 0 0)
XYZxyz(2.9192, 3.0713, 3.3442)
Luminance0.0307 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313131 #313131
analogous
#313131 #313131 #313131
triadic
#313131 #313131 #313131
tetradic
#313131 #313131 #313131 #313131
square
#313131 #313131 #313131 #313131
split-complementary
#313131 #313131 #313131
monochromatic
#0F0F0F #121212 #313131 #505050 #6E6E6E

Accessibility & contrast

On white

13.01
#313131 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#313131 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313131
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313131#FFFFFF#000000##FFFFFF
##3131311.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313131;
/* rgb */ color: rgb(49, 49, 49);
/* oklch */ color: oklch(31.3% 0.000 0.0);
Tailwind
colors: {
  custom: {
    50: '#696969',
    500: '#313131',
    950: '#000000',
  },
}
SCSS
$custom: #313131;
$custom-light: #696969;
$custom-dark: #000000;
JSON
{
  "hex": "#313131",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 49
  },
  "hsl": {
    "h": 0,
    "s": 0,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31317,
    "c": 0,
    "h": 0
  },
  "luminance": 0.03071
}

Semantic roles & 50–950 ramp

primary
#313131
secondary
#5F5F5F
accent
#A9A97E
background
#F6F6F6
surface
#EBEBEB
border
#C6C6C6
text
#060606
muted
#7A7A7A

Preview Lab

Preview with #313131

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

Preview Lab → · Contrast checker → · Palette generator →

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