#31042E#31042E

#31042E is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.3% C 0.091 H 331.1°. Best body text is #FFFFFF at 17.69:1 contrast (WCAG AA passes).

Color values

HEX#31042E
RGBrgb(49, 4, 46)
HSLhsl(304, 85%, 10%)
HSVhsv(304, 92%, 19%)
CMYKcmyk(0%, 91.8%, 6.1%, 80.8%)
CIE-LABlab(8.46, 27.94, -15.94)
CIE-LCHlch(8.46, 32.16, 330.29°)
OKLaboklab(22.3% 0.0797 -0.044)
OKLCHoklch(22.3% 0.091 331.1)
XYZxyz(1.8032, 0.9372, 2.6702)
Luminance0.0094 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31042E #043107
analogous
#1D0431 #31042E #310417
triadic
#31042E #2E3104 #042E31
tetradic
#31042E #311D04 #043107 #041731
square
#31042E #311D04 #043107 #041731
split-complementary
#31042E #173104 #04311D
monochromatic
#1C021B #1C021B #31042E #6A0963 #A20D98

Accessibility & contrast

On white

17.69
#31042E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31042E
17.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31042E#FFFFFF#000000##FFFFFF
##31042E1.0017.691.1917.69
#FFFFFF17.691.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01142F
Deuteranopia (green-blind)
#121B2D
Tritanopia (blue-blind)
#330918
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31042e;
/* rgb */ color: rgb(49, 4, 46);
/* oklch */ color: oklch(22.3% 0.091 331.1);
Tailwind
colors: {
  custom: {
    50: '#6b4a67',
    500: '#31042e',
    950: '#000000',
  },
}
SCSS
$custom: #31042e;
$custom-light: #6b4a67;
$custom-dark: #000000;
JSON
{
  "hex": "#31042e",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 46
  },
  "hsl": {
    "h": 304,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.22296,
    "c": 0.09104,
    "h": 331.1
  },
  "luminance": 0.00937
}

Semantic roles & 50–950 ramp

primary
#31042E
secondary
#1D7323
accent
#FB3A2D
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #31042E

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

Preview Lab → · Contrast checker → · Palette generator →

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