#313236#313236

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

Color values

HEX#313236
RGBrgb(49, 50, 54)
HSLhsl(228, 5%, 20%)
HSVhsv(228, 9%, 21%)
CMYKcmyk(9.3%, 7.4%, 0%, 78.8%)
CIE-LABlab(20.83, 0.54, -2.68)
CIE-LCHlch(20.83, 2.73, 281.31°)
OKLaboklab(31.77% 0.0006 -0.0072)
OKLCHoklch(31.77% 0.007 274.8)
XYZxyz(3.0729, 3.2005, 3.9452)
Luminance0.0320 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313236 #363531
analogous
#313436 #313236 #323136
triadic
#313236 #363132 #323631
tetradic
#313236 #363134 #363531 #313632
square
#313236 #363134 #363531 #313632
split-complementary
#313236 #363231 #343631
monochromatic
#0F0F10 #141416 #313236 #4E5056 #6B6D76

Accessibility & contrast

On white

12.80
#313236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313236
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313236#FFFFFF#000000##FFFFFF
##3132361.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313236
Deuteranopia (green-blind)
#313236
Tritanopia (blue-blind)
#303333
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #313236;
/* rgb */ color: rgb(49, 50, 54);
/* oklch */ color: oklch(31.8% 0.007 274.8);
Tailwind
colors: {
  custom: {
    50: '#69696d',
    500: '#313236',
    950: '#000000',
  },
}
SCSS
$custom: #313236;
$custom-light: #69696d;
$custom-dark: #000000;
JSON
{
  "hex": "#313236",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 54
  },
  "hsl": {
    "h": 228,
    "s": 4.854,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31768,
    "c": 0.00721,
    "h": 274.8
  },
  "luminance": 0.03201
}

Semantic roles & 50–950 ramp

primary
#313236
secondary
#65635E
accent
#A47AAE
background
#F6F6F6
surface
#EBEBEB
border
#C6C6C6
text
#060607
muted
#7A7A7A

Preview Lab

Preview with #313236

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

Preview Lab → · Contrast checker → · Palette generator →

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