#31041B#31041B

#31041B is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.2% C 0.077 H 354.1°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#31041B
RGBrgb(49, 4, 27)
HSLhsl(329, 85%, 10%)
HSVhsv(329, 92%, 19%)
CMYKcmyk(0%, 91.8%, 44.9%, 80.8%)
CIE-LABlab(7.40, 24.78, -3.09)
CIE-LCHlch(7.40, 24.97, 352.88°)
OKLaboklab(21.17% 0.0764 -0.0079)
OKLCHoklch(21.17% 0.077 354.1)
XYZxyz(1.5080, 0.8191, 1.1154)
Luminance0.0082 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31041B #04311A
analogous
#300431 #31041B #310405
triadic
#31041B #1B3104 #041B31
tetradic
#31041B #313004 #04311A #040531
square
#31041B #313004 #04311A #040531
split-complementary
#31041B #053104 #043130
monochromatic
#1C0210 #1C0210 #31041B #6A093A #A20D59

Accessibility & contrast

On white

18.04
#31041B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31041B
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31041B#FFFFFF#000000##FFFFFF
##31041B1.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C111C
Deuteranopia (green-blind)
#19191A
Tritanopia (blue-blind)
#36010E
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #31041b;
/* rgb */ color: rgb(49, 4, 27);
/* oklch */ color: oklch(21.2% 0.077 354.1);
Tailwind
colors: {
  custom: {
    50: '#6c4957',
    500: '#31041b',
    950: '#000000',
  },
}
SCSS
$custom: #31041b;
$custom-light: #6c4957;
$custom-dark: #000000;
JSON
{
  "hex": "#31041b",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 27
  },
  "hsl": {
    "h": 329.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.21173,
    "c": 0.0768,
    "h": 354.1
  },
  "luminance": 0.00819
}

Semantic roles & 50–950 ramp

primary
#31041B
secondary
#1D7347
accent
#FB922D
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #31041B

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

Preview Lab → · Contrast checker → · Palette generator →

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