#310212#310212

#310212 is a very dark, moderate pink. Relative luminance 0.007; OKLCH L 20.5% C 0.077 H 5.5°. Best body text is #FFFFFF at 18.29:1 contrast (WCAG AA passes).

Color values

HEX#310212
RGBrgb(49, 2, 18)
HSLhsl(340, 92%, 10%)
HSVhsv(340, 96%, 19%)
CMYKcmyk(0%, 95.9%, 63.3%, 80.8%)
CIE-LABlab(6.69, 24.71, 2.36)
CIE-LCHlch(6.69, 24.82, 5.45°)
OKLaboklab(20.49% 0.0767 0.0074)
OKLCHoklch(20.49% 0.077 5.5)
XYZxyz(1.3976, 0.7403, 0.6414)
Luminance0.0074 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310212 #023121
analogous
#31022A #310212 #310902
triadic
#310212 #123102 #021231
tetradic
#310212 #2A3102 #023121 #090231
square
#310212 #2A3102 #023121 #090231
split-complementary
#310212 #023109 #022A31
monochromatic
#1D010B #1D010B #310212 #6C0428 #A7073D

Accessibility & contrast

On white

18.29
#310212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#310212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310212
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310212#FFFFFF#000000##FFFFFF
##3102121.0018.291.1518.29
#FFFFFF18.291.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D0F12
Deuteranopia (green-blind)
#1A1811
Tritanopia (blue-blind)
#360008
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #310212;
/* rgb */ color: rgb(49, 2, 18);
/* oklch */ color: oklch(20.5% 0.077 5.5);
Tailwind
colors: {
  custom: {
    50: '#6d474f',
    500: '#310212',
    950: '#000000',
  },
}
SCSS
$custom: #310212;
$custom-light: #6d474f;
$custom-dark: #000000;
JSON
{
  "hex": "#310212",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 18
  },
  "hsl": {
    "h": 339.574,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20493,
    "c": 0.07702,
    "h": 5.5
  },
  "luminance": 0.0074
}

Semantic roles & 50–950 ramp

primary
#310212
secondary
#197556
accent
#FFB629
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070002
muted
#7A7778

Preview Lab

Preview with #310212

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

Preview Lab → · Contrast checker → · Palette generator →

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