#313138#313138

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

Color values

HEX#313138
RGBrgb(49, 49, 56)
HSLhsl(240, 7%, 21%)
HSVhsv(240, 13%, 22%)
CMYKcmyk(12.5%, 12.5%, 0%, 78%)
CIE-LABlab(20.58, 1.72, -4.42)
CIE-LCHlch(20.58, 4.75, 291.28°)
OKLaboklab(31.6% 0.0033 -0.0119)
OKLCHoklch(31.6% 0.012 285.7)
XYZxyz(3.0786, 3.1351, 4.1836)
Luminance0.0314 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313138 #383831
analogous
#313438 #313138 #343138
triadic
#313138 #383131 #313831
tetradic
#313138 #383134 #383831 #313834
square
#313138 #383134 #383831 #313834
split-complementary
#313138 #383431 #343831
monochromatic
#0E0E10 #141417 #313138 #4E4E59 #6A6A79

Accessibility & contrast

On white

12.91
#313138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313138
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313138#FFFFFF#000000##FFFFFF
##3131381.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3238
Deuteranopia (green-blind)
#2F3138
Tritanopia (blue-blind)
#303233
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #313138;
/* rgb */ color: rgb(49, 49, 56);
/* oklch */ color: oklch(31.6% 0.012 285.7);
Tailwind
colors: {
  custom: {
    50: '#69696e',
    500: '#313138',
    950: '#000000',
  },
}
SCSS
$custom: #313138;
$custom-light: #69696e;
$custom-dark: #000000;
JSON
{
  "hex": "#313138",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 56
  },
  "hsl": {
    "h": 240,
    "s": 6.667,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31595,
    "c": 0.01238,
    "h": 285.7
  },
  "luminance": 0.03135
}

Semantic roles & 50–950 ramp

primary
#313138
secondary
#67675E
accent
#B078B0
background
#F6F6F6
surface
#EBEBEB
border
#C6C6C6
text
#060607
muted
#7A7A7A

Preview Lab

Preview with #313138

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

Preview Lab → · Contrast checker → · Palette generator →

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