#31071F#31071F

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

Color values

HEX#31071F
RGBrgb(49, 7, 31)
HSLhsl(326, 75%, 11%)
HSVhsv(326, 86%, 19%)
CMYKcmyk(0%, 85.7%, 36.7%, 80.8%)
CIE-LABlab(8.16, 23.72, -5.04)
CIE-LCHlch(8.16, 24.25, 347.99°)
OKLaboklab(21.8% 0.0724 -0.0132)
OKLCHoklch(21.8% 0.074 349.7)
XYZxyz(1.5900, 0.9040, 1.3868)
Luminance0.0090 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31071F #073119
analogous
#2E0731 #31071F #31070A
triadic
#31071F #1F3107 #071F31
tetradic
#31071F #312E07 #073119 #070A31
square
#31071F #312E07 #073119 #070A31
split-complementary
#31071F #0A3107 #07312E
monochromatic
#1B0411 #1B0411 #31071F #670F41 #9C1663

Accessibility & contrast

On white

17.78
#31071F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31071F
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31071F#FFFFFF#000000##FFFFFF
##31071F1.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1320
Deuteranopia (green-blind)
#191B1E
Tritanopia (blue-blind)
#350511
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31071f;
/* rgb */ color: rgb(49, 7, 31);
/* oklch */ color: oklch(21.8% 0.074 349.7);
Tailwind
colors: {
  custom: {
    50: '#6b4b5a',
    500: '#31071f',
    950: '#000000',
  },
}
SCSS
$custom: #31071f;
$custom-light: #6b4b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#31071f",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 31
  },
  "hsl": {
    "h": 325.714,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21804,
    "c": 0.07356,
    "h": 349.7
  },
  "luminance": 0.00904
}

Semantic roles & 50–950 ramp

primary
#31071F
secondary
#237144
accent
#F28736
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #31071F

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

Preview Lab → · Contrast checker → · Palette generator →

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