#31031E#31031E

#31031E is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.2% C 0.081 H 349.6°. Best body text is #FFFFFF at 18.07:1 contrast (WCAG AA passes).

Color values

HEX#31031E
RGBrgb(49, 3, 30)
HSLhsl(325, 88%, 10%)
HSVhsv(325, 94%, 19%)
CMYKcmyk(0%, 93.9%, 38.8%, 80.8%)
CIE-LABlab(7.33, 25.77, -5.53)
CIE-LCHlch(7.33, 26.35, 347.90°)
OKLaboklab(21.17% 0.0792 -0.0145)
OKLCHoklch(21.17% 0.081 349.6)
XYZxyz(1.5336, 0.8120, 1.3040)
Luminance0.0081 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31031E #033116
analogous
#2D0331 #31031E #310307
triadic
#31031E #1E3103 #031E31
tetradic
#31031E #312D03 #033116 #030731
square
#31031E #312D03 #033116 #030731
split-complementary
#31031E #073103 #03312D
monochromatic
#1D0212 #1D0212 #31031E #6B0741 #A40A65

Accessibility & contrast

On white

18.07
#31031E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31031E
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31031E#FFFFFF#000000##FFFFFF
##31031E1.0018.071.1618.07
#FFFFFF18.071.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A111F
Deuteranopia (green-blind)
#18191D
Tritanopia (blue-blind)
#35010F
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #31031e;
/* rgb */ color: rgb(49, 3, 30);
/* oklch */ color: oklch(21.2% 0.081 349.6);
Tailwind
colors: {
  custom: {
    50: '#6c4859',
    500: '#31031e',
    950: '#000000',
  },
}
SCSS
$custom: #31031e;
$custom-light: #6c4859;
$custom-dark: #000000;
JSON
{
  "hex": "#31031e",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 30
  },
  "hsl": {
    "h": 324.783,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.2117,
    "c": 0.08055,
    "h": 349.6
  },
  "luminance": 0.00812
}

Semantic roles & 50–950 ramp

primary
#31031E
secondary
#1B7440
accent
#FF8129
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #31031E

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

Preview Lab → · Contrast checker → · Palette generator →

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