#31031A#31031A

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

Color values

HEX#31031A
RGBrgb(49, 3, 26)
HSLhsl(330, 88%, 10%)
HSVhsv(330, 94%, 19%)
CMYKcmyk(0%, 93.9%, 46.9%, 80.8%)
CIE-LABlab(7.16, 25.18, -2.66)
CIE-LCHlch(7.16, 25.32, 353.97°)
OKLaboklab(20.98% 0.078 -0.0068)
OKLCHoklch(20.98% 0.078 355)
XYZxyz(1.4857, 0.7929, 1.0519)
Luminance0.0079 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31031A #03311A
analogous
#310331 #31031A #310303
triadic
#31031A #1A3103 #031A31
tetradic
#31031A #313103 #03311A #030331
square
#31031A #313103 #03311A #030331
split-complementary
#31031A #033103 #033131
monochromatic
#1D020F #1D020F #31031A #6B0739 #A40A57

Accessibility & contrast

On white

18.13
#31031A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31031A
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31031A#FFFFFF#000000##FFFFFF
##31031A1.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C101B
Deuteranopia (green-blind)
#191919
Tritanopia (blue-blind)
#36000D
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #31031a;
/* rgb */ color: rgb(49, 3, 26);
/* oklch */ color: oklch(21.0% 0.078 355.0);
Tailwind
colors: {
  custom: {
    50: '#6c4856',
    500: '#31031a',
    950: '#000000',
  },
}
SCSS
$custom: #31031a;
$custom-light: #6c4856;
$custom-dark: #000000;
JSON
{
  "hex": "#31031a",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 26
  },
  "hsl": {
    "h": 330,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20975,
    "c": 0.07825,
    "h": 355
  },
  "luminance": 0.00793
}

Semantic roles & 50–950 ramp

primary
#31031A
secondary
#1B7448
accent
#FF9429
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #31031A

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

Preview Lab → · Contrast checker → · Palette generator →

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