#313339#313339

#313339 is a dark, near-neutral grey. Relative luminance 0.033; OKLCH L 32.1% C 0.011 H 271.0°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#313339
RGBrgb(49, 51, 57)
HSLhsl(225, 8%, 21%)
HSVhsv(225, 14%, 22%)
CMYKcmyk(14%, 10.5%, 0%, 77.6%)
CIE-LABlab(21.27, 0.63, -4.08)
CIE-LCHlch(21.27, 4.12, 278.74°)
OKLaboklab(32.15% 0.0002 -0.011)
OKLCHoklch(32.15% 0.011 271)
XYZxyz(3.1888, 3.3160, 4.3422)
Luminance0.0332 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313339 #393731
analogous
#313739 #313339 #333139
triadic
#313339 #393133 #333931
tetradic
#313339 #393137 #393731 #313933
square
#313339 #393137 #393731 #313933
split-complementary
#313339 #393331 #373931
monochromatic
#0E0F10 #151618 #313339 #4D505A #6A6E7B

Accessibility & contrast

On white

12.63
#313339 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#313339 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313339
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313339#FFFFFF#000000##FFFFFF
##3133391.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313339
Deuteranopia (green-blind)
#313339
Tritanopia (blue-blind)
#2F3435
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #313339;
/* rgb */ color: rgb(49, 51, 57);
/* oklch */ color: oklch(32.1% 0.011 271.0);
Tailwind
colors: {
  custom: {
    50: '#696a6f',
    500: '#313339',
    950: '#000000',
  },
}
SCSS
$custom: #313339;
$custom-light: #696a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#313339",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 57
  },
  "hsl": {
    "h": 225,
    "s": 7.547,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32148,
    "c": 0.01098,
    "h": 271
  },
  "luminance": 0.03316
}

Semantic roles & 50–950 ramp

primary
#313339
secondary
#68665E
accent
#A277B1
background
#F6F6F6
surface
#EBEBEC
border
#C6C6C7
text
#060607
muted
#7A7A7A

Preview Lab

Preview with #313339

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

Preview Lab → · Contrast checker → · Palette generator →

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