#31071E#31071E

#31071E is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.8% C 0.073 H 351.1°. Best body text is #FFFFFF at 17.80:1 contrast (WCAG AA passes).

Color values

HEX#31071E
RGBrgb(49, 7, 30)
HSLhsl(327, 75%, 11%)
HSVhsv(327, 86%, 19%)
CMYKcmyk(0%, 85.7%, 38.8%, 80.8%)
CIE-LABlab(8.12, 23.57, -4.34)
CIE-LCHlch(8.12, 23.97, 349.56°)
OKLaboklab(21.76% 0.0721 -0.0113)
OKLCHoklch(21.76% 0.073 351.1)
XYZxyz(1.5770, 0.8988, 1.3185)
Luminance0.0090 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31071E #07311A
analogous
#2F0731 #31071E #310709
triadic
#31071E #1E3107 #071E31
tetradic
#31071E #312F07 #07311A #070931
square
#31071E #312F07 #07311A #070931
split-complementary
#31071E #093107 #07312F
monochromatic
#1B0410 #1B0410 #31071E #670F3F #9C1660

Accessibility & contrast

On white

17.80
#31071E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31071E
17.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31071E#FFFFFF#000000##FFFFFF
##31071E1.0017.801.1817.80
#FFFFFF17.801.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E131F
Deuteranopia (green-blind)
#1A1B1D
Tritanopia (blue-blind)
#350511
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31071e;
/* rgb */ color: rgb(49, 7, 30);
/* oklch */ color: oklch(21.8% 0.073 351.1);
Tailwind
colors: {
  custom: {
    50: '#6b4a59',
    500: '#31071e',
    950: '#000000',
  },
}
SCSS
$custom: #31071e;
$custom-light: #6b4a59;
$custom-dark: #000000;
JSON
{
  "hex": "#31071e",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 30
  },
  "hsl": {
    "h": 327.143,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21755,
    "c": 0.07293,
    "h": 351.1
  },
  "luminance": 0.00899
}

Semantic roles & 50–950 ramp

primary
#31071E
secondary
#237146
accent
#F28B36
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #31071E

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

Preview Lab → · Contrast checker → · Palette generator →

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