#31071D#31071D

#31071D is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.7% C 0.072 H 352.6°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#31071D
RGBrgb(49, 7, 29)
HSLhsl(329, 75%, 11%)
HSVhsv(329, 86%, 19%)
CMYKcmyk(0%, 85.7%, 40.8%, 80.8%)
CIE-LABlab(8.07, 23.42, -3.64)
CIE-LCHlch(8.07, 23.70, 351.17°)
OKLaboklab(21.71% 0.0717 -0.0094)
OKLCHoklch(21.71% 0.072 352.6)
XYZxyz(1.5645, 0.8938, 1.2523)
Luminance0.0089 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31071D #07311B
analogous
#300731 #31071D #310708
triadic
#31071D #1D3107 #071D31
tetradic
#31071D #313007 #07311B #070831
square
#31071D #313007 #07311B #070831
split-complementary
#31071D #083107 #073130
monochromatic
#1B0410 #1B0410 #31071D #670F3D #9C165C

Accessibility & contrast

On white

17.81
#31071D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31071D
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31071D#FFFFFF#000000##FFFFFF
##31071D1.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E131E
Deuteranopia (green-blind)
#1A1A1C
Tritanopia (blue-blind)
#350510
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31071d;
/* rgb */ color: rgb(49, 7, 29);
/* oklch */ color: oklch(21.7% 0.072 352.6);
Tailwind
colors: {
  custom: {
    50: '#6c4a58',
    500: '#31071d',
    950: '#000000',
  },
}
SCSS
$custom: #31071d;
$custom-light: #6c4a58;
$custom-dark: #000000;
JSON
{
  "hex": "#31071d",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 29
  },
  "hsl": {
    "h": 328.571,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21707,
    "c": 0.07231,
    "h": 352.6
  },
  "luminance": 0.00894
}

Semantic roles & 50–950 ramp

primary
#31071D
secondary
#237148
accent
#F28F36
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #31071D

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

Preview Lab → · Contrast checker → · Palette generator →

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