#31012E#31012E

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

Color values

HEX#31012E
RGBrgb(49, 1, 46)
HSLhsl(304, 96%, 10%)
HSVhsv(304, 98%, 19%)
CMYKcmyk(0%, 98%, 6.1%, 80.8%)
CIE-LABlab(7.88, 29.62, -16.86)
CIE-LCHlch(7.88, 34.09, 330.36°)
OKLaboklab(21.89% 0.0846 -0.0466)
OKLCHoklch(21.89% 0.097 331.1)
XYZxyz(1.7706, 0.8721, 2.6593)
Luminance0.0087 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31012E #013104
analogous
#1C0131 #31012E #310116
triadic
#31012E #2E3101 #012E31
tetradic
#31012E #311C01 #013104 #011631
square
#31012E #311C01 #013104 #011631
split-complementary
#31012E #163101 #01311C
monochromatic
#1E011C #1E011C #31012E #6D0266 #A9039F

Accessibility & contrast

On white

17.88
#31012E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#31012E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31012E
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31012E#FFFFFF#000000##FFFFFF
##31012E1.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132F
Deuteranopia (green-blind)
#101A2D
Tritanopia (blue-blind)
#330617
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #31012e;
/* rgb */ color: rgb(49, 1, 46);
/* oklch */ color: oklch(21.9% 0.097 331.1);
Tailwind
colors: {
  custom: {
    50: '#6c4867',
    500: '#31012e',
    950: '#000000',
  },
}
SCSS
$custom: #31012e;
$custom-light: #6c4867;
$custom-dark: #000000;
JSON
{
  "hex": "#31012e",
  "rgb": {
    "r": 49,
    "g": 1,
    "b": 46
  },
  "hsl": {
    "h": 303.75,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.21885,
    "c": 0.0966,
    "h": 331.1
  },
  "luminance": 0.00872
}

Semantic roles & 50–950 ramp

primary
#31012E
secondary
#17771D
accent
#FF3629
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #31012E

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

Preview Lab → · Contrast checker → · Palette generator →

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