#31042D#31042D

#31042D is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.2% C 0.090 H 332.1°. Best body text is #FFFFFF at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#31042D
RGBrgb(49, 4, 45)
HSLhsl(305, 85%, 10%)
HSVhsv(305, 92%, 19%)
CMYKcmyk(0%, 91.8%, 8.2%, 80.8%)
CIE-LABlab(8.39, 27.75, -15.30)
CIE-LCHlch(8.39, 31.69, 331.12°)
OKLaboklab(22.23% 0.0797 -0.0421)
OKLCHoklch(22.23% 0.09 332.1)
XYZxyz(1.7837, 0.9294, 2.5676)
Luminance0.0093 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31042D #043108
analogous
#1E0431 #31042D #310416
triadic
#31042D #2D3104 #042D31
tetradic
#31042D #311E04 #043108 #041631
square
#31042D #311E04 #043108 #041631
split-complementary
#31042D #163104 #04311E
monochromatic
#1C021A #1C021A #31042D #6A0961 #A20D95

Accessibility & contrast

On white

17.71
#31042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#31042D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31042D
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31042D#FFFFFF#000000##FFFFFF
##31042D1.0017.711.1917.71
#FFFFFF17.711.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02142E
Deuteranopia (green-blind)
#131B2C
Tritanopia (blue-blind)
#340918
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31042d;
/* rgb */ color: rgb(49, 4, 45);
/* oklch */ color: oklch(22.2% 0.090 332.1);
Tailwind
colors: {
  custom: {
    50: '#6b4a66',
    500: '#31042d',
    950: '#000000',
  },
}
SCSS
$custom: #31042d;
$custom-light: #6b4a66;
$custom-dark: #000000;
JSON
{
  "hex": "#31042d",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 305.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.22226,
    "c": 0.09015,
    "h": 332.1
  },
  "luminance": 0.00929
}

Semantic roles & 50–950 ramp

primary
#31042D
secondary
#1D7325
accent
#FB3F2D
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #31042D

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

Preview Lab → · Contrast checker → · Palette generator →

#31042D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva