#31081F#31081F

#31081F is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.9% C 0.072 H 350.1°. Best body text is #FFFFFF at 17.72:1 contrast (WCAG AA passes).

Color values

HEX#31081F
RGBrgb(49, 8, 31)
HSLhsl(326, 72%, 11%)
HSVhsv(326, 84%, 19%)
CMYKcmyk(0%, 83.7%, 36.7%, 80.8%)
CIE-LABlab(8.36, 23.18, -4.75)
CIE-LCHlch(8.36, 23.67, 348.41°)
OKLaboklab(21.94% 0.0707 -0.0124)
OKLCHoklch(21.94% 0.072 350.1)
XYZxyz(1.6009, 0.9257, 1.3904)
Luminance0.0093 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31081F #08311A
analogous
#2E0831 #31081F #31080A
triadic
#31081F #1F3108 #081F31
tetradic
#31081F #312E08 #08311A #080A31
square
#31081F #312E08 #08311A #080A31
split-complementary
#31081F #0A3108 #08312E
monochromatic
#1A0411 #1A0411 #31081F #661140 #9A1962

Accessibility & contrast

On white

17.72
#31081F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#31081F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31081F
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31081F#FFFFFF#000000##FFFFFF
##31081F1.0017.721.1917.72
#FFFFFF17.721.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1420
Deuteranopia (green-blind)
#1A1B1E
Tritanopia (blue-blind)
#350612
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31081f;
/* rgb */ color: rgb(49, 8, 31);
/* oklch */ color: oklch(21.9% 0.072 350.1);
Tailwind
colors: {
  custom: {
    50: '#6b4b5a',
    500: '#31081f',
    950: '#000000',
  },
}
SCSS
$custom: #31081f;
$custom-light: #6b4b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#31081f",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 31
  },
  "hsl": {
    "h": 326.341,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.21944,
    "c": 0.07177,
    "h": 350.1
  },
  "luminance": 0.00926
}

Semantic roles & 50–950 ramp

primary
#31081F
secondary
#257046
accent
#EF8939
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #31081F

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

Preview Lab → · Contrast checker → · Palette generator →

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