#31031C#31031C

#31031C is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.1% C 0.079 H 352.3°. Best body text is #FFFFFF at 18.10:1 contrast (WCAG AA passes).

Color values

HEX#31031C
RGBrgb(49, 3, 28)
HSLhsl(327, 88%, 10%)
HSVhsv(327, 94%, 19%)
CMYKcmyk(0%, 93.9%, 42.9%, 80.8%)
CIE-LABlab(7.25, 25.47, -4.10)
CIE-LCHlch(7.25, 25.80, 350.85°)
OKLaboklab(21.07% 0.0786 -0.0107)
OKLCHoklch(21.07% 0.079 352.3)
XYZxyz(1.5089, 0.8021, 1.1738)
Luminance0.0080 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31031C #033118
analogous
#2F0331 #31031C #310305
triadic
#31031C #1C3103 #031C31
tetradic
#31031C #312F03 #033118 #030531
square
#31031C #312F03 #033118 #030531
split-complementary
#31031C #053103 #03312F
monochromatic
#1D0210 #1D0210 #31031C #6B073D #A40A5E

Accessibility & contrast

On white

18.10
#31031C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#31031C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31031C
18.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31031C#FFFFFF#000000##FFFFFF
##31031C1.0018.101.1618.10
#FFFFFF18.101.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B101D
Deuteranopia (green-blind)
#18191B
Tritanopia (blue-blind)
#36010E
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #31031c;
/* rgb */ color: rgb(49, 3, 28);
/* oklch */ color: oklch(21.1% 0.079 352.3);
Tailwind
colors: {
  custom: {
    50: '#6c4858',
    500: '#31031c',
    950: '#000000',
  },
}
SCSS
$custom: #31031c;
$custom-light: #6c4858;
$custom-dark: #000000;
JSON
{
  "hex": "#31031c",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 28
  },
  "hsl": {
    "h": 327.391,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.2107,
    "c": 0.07934,
    "h": 352.3
  },
  "luminance": 0.00802
}

Semantic roles & 50–950 ramp

primary
#31031C
secondary
#1B7444
accent
#FF8B29
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #31031C

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

Preview Lab → · Contrast checker → · Palette generator →

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