#31071C#31071C

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

Color values

HEX#31071C
RGBrgb(49, 7, 28)
HSLhsl(330, 75%, 11%)
HSVhsv(330, 86%, 19%)
CMYKcmyk(0%, 85.7%, 42.9%, 80.8%)
CIE-LABlab(8.03, 23.28, -2.93)
CIE-LCHlch(8.03, 23.46, 352.83°)
OKLaboklab(21.66% 0.0714 -0.0074)
OKLCHoklch(21.66% 0.072 354)
XYZxyz(1.5523, 0.8890, 1.1882)
Luminance0.0089 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31071C #07311C
analogous
#310731 #31071C #310707
triadic
#31071C #1C3107 #071C31
tetradic
#31071C #313107 #07311C #070731
square
#31071C #313107 #07311C #070731
split-complementary
#31071C #073107 #073131
monochromatic
#1B040F #1B040F #31071C #670F3B #9C1659

Accessibility & contrast

On white

17.83
#31071C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31071C
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31071C#FFFFFF#000000##FFFFFF
##31071C1.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E131D
Deuteranopia (green-blind)
#1A1A1B
Tritanopia (blue-blind)
#360410
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31071c;
/* rgb */ color: rgb(49, 7, 28);
/* oklch */ color: oklch(21.7% 0.072 354.0);
Tailwind
colors: {
  custom: {
    50: '#6c4a57',
    500: '#31071c',
    950: '#000000',
  },
}
SCSS
$custom: #31071c;
$custom-light: #6c4a57;
$custom-dark: #000000;
JSON
{
  "hex": "#31071c",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 28
  },
  "hsl": {
    "h": 330,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21661,
    "c": 0.07174,
    "h": 354
  },
  "luminance": 0.00889
}

Semantic roles & 50–950 ramp

primary
#31071C
secondary
#23714A
accent
#F29436
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #31071C

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

Preview Lab → · Contrast checker → · Palette generator →

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