#313134#313134

#313134 is a dark, near-neutral grey. Relative luminance 0.031; OKLCH L 31.4% C 0.005 H 286.1°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#313134
RGBrgb(49, 49, 52)
HSLhsl(240, 3%, 20%)
HSVhsv(240, 6%, 20%)
CMYKcmyk(5.8%, 5.8%, 0%, 79.6%)
CIE-LABlab(20.43, 0.72, -1.90)
CIE-LCHlch(20.43, 2.04, 290.68°)
OKLaboklab(31.43% 0.0015 -0.0051)
OKLCHoklch(31.43% 0.005 286.1)
XYZxyz(2.9847, 3.0975, 3.6888)
Luminance0.0310 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313134 #343431
analogous
#313334 #313134 #333134
triadic
#313134 #343131 #313431
tetradic
#313134 #343133 #343431 #313433
square
#313134 #343133 #343431 #313433
split-complementary
#313134 #343331 #333431
monochromatic
#0F0F10 #131314 #313134 #4F4F54 #6C6C73

Accessibility & contrast

On white

12.97
#313134 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#313134 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313134
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313134#FFFFFF#000000##FFFFFF
##3131341.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313134;
/* rgb */ color: rgb(49, 49, 52);
/* oklch */ color: oklch(31.4% 0.005 286.1);
Tailwind
colors: {
  custom: {
    50: '#69696b',
    500: '#313134',
    950: '#000000',
  },
}
SCSS
$custom: #313134;
$custom-light: #69696b;
$custom-dark: #000000;
JSON
{
  "hex": "#313134",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 52
  },
  "hsl": {
    "h": 240,
    "s": 2.97,
    "l": 19.804
  },
  "oklch": {
    "l": 0.31432,
    "c": 0.00529,
    "h": 286.1
  },
  "luminance": 0.03098
}

Semantic roles & 50–950 ramp

primary
#313134
secondary
#62625E
accent
#AC7CAC
background
#F6F6F6
surface
#EBEBEB
border
#C6C6C6
text
#060606
muted
#7A7A7A

Preview Lab

Preview with #313134

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

Preview Lab → · Contrast checker → · Palette generator →

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