#31042B#31042B

#31042B is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.1% C 0.088 H 334.2°. Best body text is #FFFFFF at 17.75:1 contrast (WCAG AA passes).

Color values

HEX#31042B
RGBrgb(49, 4, 43)
HSLhsl(308, 85%, 10%)
HSVhsv(308, 92%, 19%)
CMYKcmyk(0%, 91.8%, 12.2%, 80.8%)
CIE-LABlab(8.26, 27.38, -14.02)
CIE-LCHlch(8.26, 30.75, 332.89°)
OKLaboklab(22.09% 0.0796 -0.0384)
OKLCHoklch(22.09% 0.088 334.2)
XYZxyz(1.7461, 0.9144, 2.3696)
Luminance0.0091 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31042B #04310A
analogous
#200431 #31042B #310414
triadic
#31042B #2B3104 #042B31
tetradic
#31042B #312004 #04310A #041431
square
#31042B #312004 #04310A #041431
split-complementary
#31042B #143104 #043120
monochromatic
#1C0219 #1C0219 #31042B #6A095D #A20D8E

Accessibility & contrast

On white

17.75
#31042B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#31042B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31042B
17.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31042B#FFFFFF#000000##FFFFFF
##31042B1.0017.751.1817.75
#FFFFFF17.751.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03142C
Deuteranopia (green-blind)
#141A2A
Tritanopia (blue-blind)
#340817
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31042b;
/* rgb */ color: rgb(49, 4, 43);
/* oklch */ color: oklch(22.1% 0.088 334.2);
Tailwind
colors: {
  custom: {
    50: '#6b4964',
    500: '#31042b',
    950: '#000000',
  },
}
SCSS
$custom: #31042b;
$custom-light: #6b4964;
$custom-dark: #000000;
JSON
{
  "hex": "#31042b",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 43
  },
  "hsl": {
    "h": 308,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.22089,
    "c": 0.08843,
    "h": 334.2
  },
  "luminance": 0.00914
}

Semantic roles & 50–950 ramp

primary
#31042B
secondary
#1D7329
accent
#FB482D
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #31042B

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

Preview Lab → · Contrast checker → · Palette generator →

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