#31021B#31021B

#31021B is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 20.9% C 0.081 H 353.2°. Best body text is #FFFFFF at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#31021B
RGBrgb(49, 2, 27)
HSLhsl(328, 92%, 10%)
HSVhsv(328, 96%, 19%)
CMYKcmyk(0%, 95.9%, 44.9%, 80.8%)
CIE-LABlab(7.01, 25.87, -3.68)
CIE-LCHlch(7.01, 26.13, 351.91°)
OKLaboklab(20.87% 0.0802 -0.0096)
OKLCHoklch(20.87% 0.081 353.2)
XYZxyz(1.4863, 0.7757, 1.1082)
Luminance0.0078 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31021B #023118
analogous
#2F0231 #31021B #310204
triadic
#31021B #1B3102 #021B31
tetradic
#31021B #312F02 #023118 #020431
square
#31021B #312F02 #023118 #020431
split-complementary
#31021B #043102 #02312F
monochromatic
#1D0110 #1D0110 #31021B #6C043B #A7075C

Accessibility & contrast

On white

18.18
#31021B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31021B
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31021B#FFFFFF#000000##FFFFFF
##31021B1.0018.181.1618.18
#FFFFFF18.181.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A101C
Deuteranopia (green-blind)
#18191A
Tritanopia (blue-blind)
#36000D
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #31021b;
/* rgb */ color: rgb(49, 2, 27);
/* oklch */ color: oklch(20.9% 0.081 353.2);
Tailwind
colors: {
  custom: {
    50: '#6c4857',
    500: '#31021b',
    950: '#000000',
  },
}
SCSS
$custom: #31021b;
$custom-light: #6c4857;
$custom-dark: #000000;
JSON
{
  "hex": "#31021b",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 27
  },
  "hsl": {
    "h": 328.085,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20868,
    "c": 0.08081,
    "h": 353.2
  },
  "luminance": 0.00776
}

Semantic roles & 50–950 ramp

primary
#31021B
secondary
#197544
accent
#FF8D29
background
#F6F4F5
surface
#ECE6E9
border
#C7C2C5
text
#070003
muted
#7A7778

Preview Lab

Preview with #31021B

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

Preview Lab → · Contrast checker → · Palette generator →

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