#313239#313239

#313239 is a dark, near-neutral grey. Relative luminance 0.032; OKLCH L 31.9% C 0.012 H 279.2°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#313239
RGBrgb(49, 50, 57)
HSLhsl(233, 8%, 21%)
HSVhsv(233, 14%, 22%)
CMYKcmyk(14%, 12.3%, 0%, 77.6%)
CIE-LABlab(20.94, 1.30, -4.56)
CIE-LCHlch(20.94, 4.75, 285.95°)
OKLaboklab(31.89% 0.002 -0.0123)
OKLCHoklch(31.89% 0.012 279.2)
XYZxyz(3.1456, 3.2295, 4.3277)
Luminance0.0323 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313239 #393831
analogous
#313639 #313239 #343139
triadic
#313239 #393132 #323931
tetradic
#313239 #393136 #393831 #313934
square
#313239 #393136 #393831 #313934
split-complementary
#313239 #393431 #363931
monochromatic
#0E0E10 #151518 #313239 #4D4F5A #6A6C7B

Accessibility & contrast

On white

12.76
#313239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#313239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313239
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313239#FFFFFF#000000##FFFFFF
##3132391.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303339
Deuteranopia (green-blind)
#303239
Tritanopia (blue-blind)
#2F3334
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #313239;
/* rgb */ color: rgb(49, 50, 57);
/* oklch */ color: oklch(31.9% 0.012 279.2);
Tailwind
colors: {
  custom: {
    50: '#69696f',
    500: '#313239',
    950: '#000000',
  },
}
SCSS
$custom: #313239;
$custom-light: #69696f;
$custom-dark: #000000;
JSON
{
  "hex": "#313239",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 57
  },
  "hsl": {
    "h": 232.5,
    "s": 7.547,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31892,
    "c": 0.01247,
    "h": 279.2
  },
  "luminance": 0.0323
}

Semantic roles & 50–950 ramp

primary
#313239
secondary
#68675E
accent
#A977B1
background
#F6F6F6
surface
#EBEBEC
border
#C6C6C7
text
#060607
muted
#7A7A7A

Preview Lab

Preview with #313239

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

Preview Lab → · Contrast checker → · Palette generator →

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