#313334#313334

#313334 is a dark, near-neutral grey. Relative luminance 0.033; OKLCH L 31.9% C 0.003 H 228.9°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#313334
RGBrgb(49, 51, 52)
HSLhsl(200, 3%, 20%)
HSVhsv(200, 6%, 20%)
CMYKcmyk(5.8%, 1.9%, 0%, 79.6%)
CIE-LABlab(21.09, -0.63, -0.94)
CIE-LCHlch(21.09, 1.13, 236.16°)
OKLaboklab(31.95% -0.0022 -0.0025)
OKLCHoklch(31.95% 0.003 228.9)
XYZxyz(3.0702, 3.2685, 3.7173)
Luminance0.0327 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313334 #343231
analogous
#313434 #313334 #313234
triadic
#313334 #343133 #333431
tetradic
#313334 #343134 #343231 #323431
square
#313334 #343134 #343231 #323431
split-complementary
#313334 #343132 #343431
monochromatic
#0F0F10 #131414 #313334 #4F5254 #6C7173

Accessibility & contrast

On white

12.70
#313334 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313334
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313334#FFFFFF#000000##FFFFFF
##3133341.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323334
Deuteranopia (green-blind)
#323234
Tritanopia (blue-blind)
#303333
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #313334;
/* rgb */ color: rgb(49, 51, 52);
/* oklch */ color: oklch(31.9% 0.003 228.9);
Tailwind
colors: {
  custom: {
    50: '#696a6b',
    500: '#313334',
    950: '#000000',
  },
}
SCSS
$custom: #313334;
$custom-light: #696a6b;
$custom-dark: #000000;
JSON
{
  "hex": "#313334",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 52
  },
  "hsl": {
    "h": 200,
    "s": 2.97,
    "l": 19.804
  },
  "oklch": {
    "l": 0.31949,
    "c": 0.00332,
    "h": 228.9
  },
  "luminance": 0.03269
}

Semantic roles & 50–950 ramp

primary
#313334
secondary
#62605E
accent
#8C7CAC
background
#F6F6F6
surface
#EBEBEB
border
#C6C6C6
text
#060606
muted
#7A7A7A

Preview Lab

Preview with #313334

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

Preview Lab → · Contrast checker → · Palette generator →

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