#31041C#31041C

#31041C is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.2% C 0.077 H 352.7°. Best body text is #FFFFFF at 18.03:1 contrast (WCAG AA passes).

Color values

HEX#31041C
RGBrgb(49, 4, 28)
HSLhsl(328, 85%, 10%)
HSVhsv(328, 92%, 19%)
CMYKcmyk(0%, 91.8%, 42.9%, 80.8%)
CIE-LABlab(7.44, 24.92, -3.81)
CIE-LCHlch(7.44, 25.21, 351.31°)
OKLaboklab(21.22% 0.0767 -0.0098)
OKLCHoklch(21.22% 0.077 352.7)
XYZxyz(1.5197, 0.8238, 1.1774)
Luminance0.0082 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31041C #043119
analogous
#2F0431 #31041C #310405
triadic
#31041C #1C3104 #041C31
tetradic
#31041C #312F04 #043119 #040531
square
#31041C #312F04 #043119 #040531
split-complementary
#31041C #053104 #04312F
monochromatic
#1C0210 #1C0210 #31041C #6A093C #A20D5D

Accessibility & contrast

On white

18.03
#31041C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31041C
18.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31041C#FFFFFF#000000##FFFFFF
##31041C1.0018.031.1618.03
#FFFFFF18.031.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31041c;
/* rgb */ color: rgb(49, 4, 28);
/* oklch */ color: oklch(21.2% 0.077 352.7);
Tailwind
colors: {
  custom: {
    50: '#6c4958',
    500: '#31041c',
    950: '#000000',
  },
}
SCSS
$custom: #31041c;
$custom-light: #6c4958;
$custom-dark: #000000;
JSON
{
  "hex": "#31041c",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 28
  },
  "hsl": {
    "h": 328,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.21221,
    "c": 0.07736,
    "h": 352.7
  },
  "luminance": 0.00824
}

Semantic roles & 50–950 ramp

primary
#31041C
secondary
#1D7346
accent
#FB8D2D
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #31041C

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

Preview Lab → · Contrast checker → · Palette generator →

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