#31212E#31212E

#31212E is a dark, muted pink. Relative luminance 0.019; OKLCH L 27.3% C 0.033 H 333.2°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#31212E
RGBrgb(49, 33, 46)
HSLhsl(311, 20%, 16%)
HSVhsv(311, 33%, 19%)
CMYKcmyk(0%, 32.7%, 6.1%, 80.8%)
CIE-LABlab(15.16, 10.39, -5.57)
CIE-LCHlch(15.16, 11.79, 331.81°)
OKLaboklab(27.27% 0.0295 -0.0149)
OKLCHoklch(27.27% 0.033 333.2)
XYZxyz(2.3036, 1.9380, 2.8370)
Luminance0.0194 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31212E #213124
analogous
#2C2131 #31212E #312126
triadic
#31212E #2E3121 #212E31
tetradic
#31212E #312C21 #213124 #212631
square
#31212E #312C21 #213124 #212631
split-complementary
#31212E #263121 #21312C
monochromatic
#120C11 #120C11 #31212E #563A50 #7A5273

Accessibility & contrast

On white

15.13
#31212E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#31212E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31212E
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31212E#FFFFFF#000000##FFFFFF
##31212E1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21252F
Deuteranopia (green-blind)
#25272D
Tritanopia (blue-blind)
#332226
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #31212e;
/* rgb */ color: rgb(49, 33, 46);
/* oklch */ color: oklch(27.3% 0.033 333.2);
Tailwind
colors: {
  custom: {
    50: '#695c66',
    500: '#31212e',
    950: '#000000',
  },
}
SCSS
$custom: #31212e;
$custom-light: #695c66;
$custom-dark: #000000;
JSON
{
  "hex": "#31212e",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 46
  },
  "hsl": {
    "h": 311.25,
    "s": 19.512,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27267,
    "c": 0.03305,
    "h": 333.2
  },
  "luminance": 0.01938
}

Semantic roles & 50–950 ramp

primary
#31212E
secondary
#4B634F
accent
#BC7B6C
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060406
muted
#7A797A

Preview Lab

Preview with #31212E

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

Preview Lab → · Contrast checker → · Palette generator →

#31212E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva