#313233#313233

#313233 is a dark, near-neutral grey. Relative luminance 0.032; OKLCH L 31.7% C 0.002 H 248.0°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#313233
RGBrgb(49, 50, 51)
HSLhsl(210, 2%, 20%)
HSVhsv(210, 4%, 20%)
CMYKcmyk(3.9%, 2%, 0%, 80%)
CIE-LABlab(20.72, -0.20, -0.79)
CIE-LCHlch(20.72, 0.81, 255.84°)
OKLaboklab(31.65% -0.0008 -0.0021)
OKLCHoklch(31.65% 0.002 248)
XYZxyz(3.0047, 3.1732, 3.5855)
Luminance0.0317 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313233 #333231
analogous
#313333 #313233 #313133
triadic
#313233 #333132 #323331
tetradic
#313233 #333133 #333231 #313331
square
#313233 #333133 #333231 #313331
split-complementary
#313233 #333131 #333331
monochromatic
#0F0F10 #131314 #313233 #4F5152 #6D6F71

Accessibility & contrast

On white

12.85
#313233 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313233
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313233#FFFFFF#000000##FFFFFF
##3132331.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323233
Deuteranopia (green-blind)
#313233
Tritanopia (blue-blind)
#313232
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #313233;
/* rgb */ color: rgb(49, 50, 51);
/* oklch */ color: oklch(31.7% 0.002 248.0);
Tailwind
colors: {
  custom: {
    50: '#69696a',
    500: '#313233',
    950: '#000000',
  },
}
SCSS
$custom: #313233;
$custom-light: #69696a;
$custom-dark: #000000;
JSON
{
  "hex": "#313233",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 51
  },
  "hsl": {
    "h": 210,
    "s": 2,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31651,
    "c": 0.00227,
    "h": 248
  },
  "luminance": 0.03173
}

Semantic roles & 50–950 ramp

primary
#313233
secondary
#61605F
accent
#947DAB
background
#F6F6F6
surface
#EBEBEB
border
#C6C6C6
text
#060606
muted
#7A7A7A

Preview Lab

Preview with #313233

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

Preview Lab → · Contrast checker → · Palette generator →

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