#31071B#31071B

#31071B is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.6% C 0.071 H 355.5°. Best body text is #FFFFFF at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#31071B
RGBrgb(49, 7, 27)
HSLhsl(331, 75%, 11%)
HSVhsv(331, 86%, 19%)
CMYKcmyk(0%, 85.7%, 44.9%, 80.8%)
CIE-LABlab(7.99, 23.14, -2.22)
CIE-LCHlch(7.99, 23.25, 354.52°)
OKLaboklab(21.62% 0.071 -0.0056)
OKLCHoklch(21.62% 0.071 355.5)
XYZxyz(1.5405, 0.8842, 1.1262)
Luminance0.0088 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31071B #07311D
analogous
#310730 #31071B #310807
triadic
#31071B #1B3107 #071B31
tetradic
#31071B #303107 #07311D #080731
square
#31071B #303107 #07311D #080731
split-complementary
#31071B #073108 #073031
monochromatic
#1B040F #1B040F #31071B #670F39 #9C1656

Accessibility & contrast

On white

17.85
#31071B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#31071B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31071B
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31071B#FFFFFF#000000##FFFFFF
##31071B1.0017.851.1817.85
#FFFFFF17.851.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F121C
Deuteranopia (green-blind)
#1A1A1A
Tritanopia (blue-blind)
#36040F
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #31071b;
/* rgb */ color: rgb(49, 7, 27);
/* oklch */ color: oklch(21.6% 0.071 355.5);
Tailwind
colors: {
  custom: {
    50: '#6c4a57',
    500: '#31071b',
    950: '#000000',
  },
}
SCSS
$custom: #31071b;
$custom-light: #6c4a57;
$custom-dark: #000000;
JSON
{
  "hex": "#31071b",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 27
  },
  "hsl": {
    "h": 331.429,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21616,
    "c": 0.07119,
    "h": 355.5
  },
  "luminance": 0.00884
}

Semantic roles & 50–950 ramp

primary
#31071B
secondary
#23714C
accent
#F29836
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #31071B

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

Preview Lab → · Contrast checker → · Palette generator →

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