#313237#313237

#313237 is a dark, near-neutral grey. Relative luminance 0.032; OKLCH L 31.8% C 0.009 H 276.9°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#313237
RGBrgb(49, 50, 55)
HSLhsl(230, 6%, 20%)
HSVhsv(230, 11%, 22%)
CMYKcmyk(10.9%, 9.1%, 0%, 78.4%)
CIE-LABlab(20.87, 0.79, -3.31)
CIE-LCHlch(20.87, 3.40, 283.41°)
OKLaboklab(31.81% 0.0011 -0.0089)
OKLCHoklch(31.81% 0.009 276.9)
XYZxyz(3.0967, 3.2100, 4.0701)
Luminance0.0321 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313237 #373631
analogous
#313537 #313237 #333137
triadic
#313237 #373132 #323731
tetradic
#313237 #373135 #373631 #313733
square
#313237 #373135 #373631 #313733
split-complementary
#313237 #373331 #353731
monochromatic
#0E0F10 #141517 #313237 #4E4F57 #6B6D78

Accessibility & contrast

On white

12.79
#313237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#313237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313237
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313237#FFFFFF#000000##FFFFFF
##3132371.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313237
Deuteranopia (green-blind)
#303237
Tritanopia (blue-blind)
#303334
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #313237;
/* rgb */ color: rgb(49, 50, 55);
/* oklch */ color: oklch(31.8% 0.009 276.9);
Tailwind
colors: {
  custom: {
    50: '#69696d',
    500: '#313237',
    950: '#000000',
  },
}
SCSS
$custom: #313237;
$custom-light: #69696d;
$custom-dark: #000000;
JSON
{
  "hex": "#313237",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 55
  },
  "hsl": {
    "h": 230,
    "s": 5.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31809,
    "c": 0.00895,
    "h": 276.9
  },
  "luminance": 0.0321
}

Semantic roles & 50–950 ramp

primary
#313237
secondary
#66655E
accent
#A679AF
background
#F6F6F6
surface
#EBEBEB
border
#C6C6C6
text
#060607
muted
#7A7A7A

Preview Lab

Preview with #313237

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

Preview Lab → · Contrast checker → · Palette generator →

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