#31011F#31011F

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

Color values

HEX#31011F
RGBrgb(49, 1, 31)
HSLhsl(323, 96%, 10%)
HSVhsv(323, 98%, 19%)
CMYKcmyk(0%, 98%, 36.7%, 80.8%)
CIE-LABlab(6.99, 27.01, -6.82)
CIE-LCHlch(6.99, 27.86, 345.82°)
OKLaboklab(20.92% 0.0833 -0.0182)
OKLCHoklch(20.92% 0.085 347.7)
XYZxyz(1.5249, 0.7738, 1.3651)
Luminance0.0077 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31011F #013113
analogous
#2B0131 #31011F #310107
triadic
#31011F #1F3101 #011F31
tetradic
#31011F #312B01 #013113 #010731
square
#31011F #312B01 #013113 #010731
split-complementary
#31011F #073101 #01312B
monochromatic
#1E0113 #1E0113 #31011F #6D0245 #A9036B

Accessibility & contrast

On white

18.18
#31011F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#31011F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31011F
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31011F#FFFFFF#000000##FFFFFF
##31011F1.0018.181.1518.18
#FFFFFF18.181.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071020
Deuteranopia (green-blind)
#17191E
Tritanopia (blue-blind)
#35000E
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #31011f;
/* rgb */ color: rgb(49, 1, 31);
/* oklch */ color: oklch(20.9% 0.085 347.7);
Tailwind
colors: {
  custom: {
    50: '#6c475a',
    500: '#31011f',
    950: '#000000',
  },
}
SCSS
$custom: #31011f;
$custom-light: #6c475a;
$custom-dark: #000000;
JSON
{
  "hex": "#31011f",
  "rgb": {
    "r": 49,
    "g": 1,
    "b": 31
  },
  "hsl": {
    "h": 322.5,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20918,
    "c": 0.08532,
    "h": 347.7
  },
  "luminance": 0.00774
}

Semantic roles & 50–950 ramp

primary
#31011F
secondary
#17773B
accent
#FF7929
background
#F6F4F5
surface
#ECE6E9
border
#C7C2C5
text
#070003
muted
#7A7778

Preview Lab

Preview with #31011F

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

Preview Lab → · Contrast checker → · Palette generator →

#31011F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva