#31021D#31021D

#31021D is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.0% C 0.082 H 350.5°. Best body text is #FFFFFF at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#31021D
RGBrgb(49, 2, 29)
HSLhsl(326, 92%, 10%)
HSVhsv(326, 96%, 19%)
CMYKcmyk(0%, 95.9%, 40.8%, 80.8%)
CIE-LABlab(7.09, 26.16, -5.11)
CIE-LCHlch(7.09, 26.65, 348.95°)
OKLaboklab(20.97% 0.0809 -0.0135)
OKLCHoklch(20.97% 0.082 350.5)
XYZxyz(1.5102, 0.7853, 1.2342)
Luminance0.0078 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31021D #023116
analogous
#2E0231 #31021D #310205
triadic
#31021D #1D3102 #021D31
tetradic
#31021D #312E02 #023116 #020531
square
#31021D #312E02 #023116 #020531
split-complementary
#31021D #053102 #02312E
monochromatic
#1D0111 #1D0111 #31021D #6C0440 #A70763

Accessibility & contrast

On white

18.15
#31021D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#31021D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31021D
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31021D#FFFFFF#000000##FFFFFF
##31021D1.0018.151.1618.15
#FFFFFF18.151.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09101E
Deuteranopia (green-blind)
#18191C
Tritanopia (blue-blind)
#36000E
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #31021d;
/* rgb */ color: rgb(49, 2, 29);
/* oklch */ color: oklch(21.0% 0.082 350.5);
Tailwind
colors: {
  custom: {
    50: '#6c4858',
    500: '#31021d',
    950: '#000000',
  },
}
SCSS
$custom: #31021d;
$custom-light: #6c4858;
$custom-dark: #000000;
JSON
{
  "hex": "#31021d",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 29
  },
  "hsl": {
    "h": 325.532,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20966,
    "c": 0.08197,
    "h": 350.5
  },
  "luminance": 0.00785
}

Semantic roles & 50–950 ramp

primary
#31021D
secondary
#197541
accent
#FF8429
background
#F6F4F5
surface
#ECE6E9
border
#C7C2C5
text
#070003
muted
#7A7778

Preview Lab

Preview with #31021D

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

Preview Lab → · Contrast checker → · Palette generator →

#31021D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva