#31031B#31031B

#31031B is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.0% C 0.079 H 353.6°. Best body text is #FFFFFF at 18.11:1 contrast (WCAG AA passes).

Color values

HEX#31031B
RGBrgb(49, 3, 27)
HSLhsl(329, 88%, 10%)
HSVhsv(329, 94%, 19%)
CMYKcmyk(0%, 93.9%, 44.9%, 80.8%)
CIE-LABlab(7.20, 25.32, -3.38)
CIE-LCHlch(7.20, 25.55, 352.39°)
OKLaboklab(21.02% 0.0783 -0.0088)
OKLCHoklch(21.02% 0.079 353.6)
XYZxyz(1.4971, 0.7974, 1.1118)
Luminance0.0080 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31031B #033119
analogous
#300331 #31031B #310304
triadic
#31031B #1B3103 #031B31
tetradic
#31031B #313003 #033119 #030431
square
#31031B #313003 #033119 #030431
split-complementary
#31031B #043103 #033130
monochromatic
#1D0210 #1D0210 #31031B #6B073B #A40A5B

Accessibility & contrast

On white

18.11
#31031B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31031B
18.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31031B#FFFFFF#000000##FFFFFF
##31031B1.0018.111.1618.11
#FFFFFF18.111.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B101C
Deuteranopia (green-blind)
#19191A
Tritanopia (blue-blind)
#36000D
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #31031b;
/* rgb */ color: rgb(49, 3, 27);
/* oklch */ color: oklch(21.0% 0.079 353.6);
Tailwind
colors: {
  custom: {
    50: '#6c4857',
    500: '#31031b',
    950: '#000000',
  },
}
SCSS
$custom: #31031b;
$custom-light: #6c4857;
$custom-dark: #000000;
JSON
{
  "hex": "#31031b",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 27
  },
  "hsl": {
    "h": 328.696,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.21022,
    "c": 0.07878,
    "h": 353.6
  },
  "luminance": 0.00797
}

Semantic roles & 50–950 ramp

primary
#31031B
secondary
#1B7446
accent
#FF8F29
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #31031B

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

Preview Lab → · Contrast checker → · Palette generator →

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