#31072A#31072A

#31072A is a very dark, moderate pink. Relative luminance 0.010; OKLCH L 22.4% C 0.082 H 335.5°. Best body text is #FFFFFF at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#31072A
RGBrgb(49, 7, 42)
HSLhsl(310, 75%, 11%)
HSVhsv(310, 86%, 19%)
CMYKcmyk(0%, 85.7%, 14.3%, 80.8%)
CIE-LABlab(8.76, 25.58, -12.48)
CIE-LCHlch(8.76, 28.46, 333.99°)
OKLaboklab(22.43% 0.0748 -0.034)
OKLCHoklch(22.43% 0.082 335.5)
XYZxyz(1.7605, 0.9722, 2.2850)
Luminance0.0097 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31072A #07310E
analogous
#230731 #31072A #310715
triadic
#31072A #2A3107 #072A31
tetradic
#31072A #312307 #07310E #071531
square
#31072A #312307 #07310E #071531
split-complementary
#31072A #153107 #073123
monochromatic
#1B0417 #1B0417 #31072A #670F58 #9C1686

Accessibility & contrast

On white

17.58
#31072A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#31072A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31072A
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31072A#FFFFFF#000000##FFFFFF
##31072A1.0017.581.1917.58
#FFFFFF17.581.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07152B
Deuteranopia (green-blind)
#161B29
Tritanopia (blue-blind)
#340A17
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #31072a;
/* rgb */ color: rgb(49, 7, 42);
/* oklch */ color: oklch(22.4% 0.082 335.5);
Tailwind
colors: {
  custom: {
    50: '#6b4b63',
    500: '#31072a',
    950: '#000000',
  },
}
SCSS
$custom: #31072a;
$custom-light: #6b4b63;
$custom-dark: #000000;
JSON
{
  "hex": "#31072a",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 42
  },
  "hsl": {
    "h": 310,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.22429,
    "c": 0.08217,
    "h": 335.5
  },
  "luminance": 0.00972
}

Semantic roles & 50–950 ramp

primary
#31072A
secondary
#237130
accent
#F25536
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #31072A

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

Preview Lab → · Contrast checker → · Palette generator →

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