#313338#313338

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

Color values

HEX#313338
RGBrgb(49, 51, 56)
HSLhsl(223, 7%, 21%)
HSVhsv(223, 13%, 22%)
CMYKcmyk(12.5%, 8.9%, 0%, 78%)
CIE-LABlab(21.23, 0.37, -3.45)
CIE-LCHlch(21.23, 3.47, 276.11°)
OKLaboklab(32.11% -0.0003 -0.0093)
OKLCHoklch(32.11% 0.009 268.4)
XYZxyz(3.1641, 3.3061, 4.2121)
Luminance0.0331 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313338 #383631
analogous
#313638 #313338 #323138
triadic
#313338 #383133 #333831
tetradic
#313338 #383136 #383631 #313832
square
#313338 #383136 #383631 #313832
split-complementary
#313338 #383231 #363831
monochromatic
#0E0F10 #141517 #313338 #4E5159 #6A6E79

Accessibility & contrast

On white

12.64
#313338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313338
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313338#FFFFFF#000000##FFFFFF
##3133381.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313338;
/* rgb */ color: rgb(49, 51, 56);
/* oklch */ color: oklch(32.1% 0.009 268.4);
Tailwind
colors: {
  custom: {
    50: '#696a6e',
    500: '#313338',
    950: '#000000',
  },
}
SCSS
$custom: #313338;
$custom-light: #696a6e;
$custom-dark: #000000;
JSON
{
  "hex": "#313338",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 56
  },
  "hsl": {
    "h": 222.857,
    "s": 6.667,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32107,
    "c": 0.00928,
    "h": 268.4
  },
  "luminance": 0.03306
}

Semantic roles & 50–950 ramp

primary
#313338
secondary
#67645E
accent
#A078B0
background
#F6F6F6
surface
#EBEBEB
border
#C6C6C6
text
#060607
muted
#7A7A7A

Preview Lab

Preview with #313338

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

Preview Lab → · Contrast checker → · Palette generator →

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