#31042A#31042A

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

Color values

HEX#31042A
RGBrgb(49, 4, 42)
HSLhsl(309, 85%, 10%)
HSVhsv(309, 92%, 19%)
CMYKcmyk(0%, 91.8%, 14.3%, 80.8%)
CIE-LABlab(8.19, 27.20, -13.37)
CIE-LCHlch(8.19, 30.30, 333.83°)
OKLaboklab(22.02% 0.0796 -0.0366)
OKLCHoklch(22.02% 0.088 335.3)
XYZxyz(1.7280, 0.9071, 2.2741)
Luminance0.0091 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31042A #04310B
analogous
#210431 #31042A #310413
triadic
#31042A #2A3104 #042A31
tetradic
#31042A #312104 #04310B #041331
square
#31042A #312104 #04310B #041331
split-complementary
#31042A #133104 #043121
monochromatic
#1C0218 #1C0218 #31042A #6A095A #A20D8B

Accessibility & contrast

On white

17.78
#31042A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31042A
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31042A#FFFFFF#000000##FFFFFF
##31042A1.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04142B
Deuteranopia (green-blind)
#141A29
Tritanopia (blue-blind)
#340716
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31042a;
/* rgb */ color: rgb(49, 4, 42);
/* oklch */ color: oklch(22.0% 0.088 335.3);
Tailwind
colors: {
  custom: {
    50: '#6b4963',
    500: '#31042a',
    950: '#000000',
  },
}
SCSS
$custom: #31042a;
$custom-light: #6b4963;
$custom-dark: #000000;
JSON
{
  "hex": "#31042a",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 42
  },
  "hsl": {
    "h": 309.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.22022,
    "c": 0.08758,
    "h": 335.3
  },
  "luminance": 0.00907
}

Semantic roles & 50–950 ramp

primary
#31042A
secondary
#1D732B
accent
#FB4D2D
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #31042A

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

Preview Lab → · Contrast checker → · Palette generator →

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