#31071A#31071A

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

Color values

HEX#31071A
RGBrgb(49, 7, 26)
HSLhsl(333, 75%, 11%)
HSVhsv(333, 86%, 19%)
CMYKcmyk(0%, 85.7%, 46.9%, 80.8%)
CIE-LABlab(7.95, 23.01, -1.50)
CIE-LCHlch(7.95, 23.06, 356.26°)
OKLaboklab(21.57% 0.0706 -0.0037)
OKLCHoklch(21.57% 0.071 357)
XYZxyz(1.5292, 0.8797, 1.0664)
Luminance0.0088 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31071A #07311E
analogous
#31072F #31071A #310907
triadic
#31071A #1A3107 #071A31
tetradic
#31071A #2F3107 #07311E #090731
square
#31071A #2F3107 #07311E #090731
split-complementary
#31071A #073109 #072F31
monochromatic
#1B040E #1B040E #31071A #670F36 #9C1653

Accessibility & contrast

On white

17.86
#31071A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31071A
17.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31071A#FFFFFF#000000##FFFFFF
##31071A1.0017.861.1817.86
#FFFFFF17.861.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31071a;
/* rgb */ color: rgb(49, 7, 26);
/* oklch */ color: oklch(21.6% 0.071 357.0);
Tailwind
colors: {
  custom: {
    50: '#6c4a56',
    500: '#31071a',
    950: '#000000',
  },
}
SCSS
$custom: #31071a;
$custom-light: #6c4a56;
$custom-dark: #000000;
JSON
{
  "hex": "#31071a",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 26
  },
  "hsl": {
    "h": 332.857,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21572,
    "c": 0.07068,
    "h": 357
  },
  "luminance": 0.0088
}

Semantic roles & 50–950 ramp

primary
#31071A
secondary
#23714E
accent
#F29D36
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #31071A

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

Preview Lab → · Contrast checker → · Palette generator →

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