#31012B#31012B

#31012B is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.7% C 0.094 H 334.1°. Best body text is #FFFFFF at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#31012B
RGBrgb(49, 1, 43)
HSLhsl(308, 96%, 10%)
HSVhsv(308, 98%, 19%)
CMYKcmyk(0%, 98%, 12.2%, 80.8%)
CIE-LABlab(7.67, 29.07, -14.94)
CIE-LCHlch(7.67, 32.69, 332.80°)
OKLaboklab(21.67% 0.0847 -0.0411)
OKLCHoklch(21.67% 0.094 334.1)
XYZxyz(1.7135, 0.8493, 2.3587)
Luminance0.0085 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31012B #013107
analogous
#1F0131 #31012B #310113
triadic
#31012B #2B3101 #012B31
tetradic
#31012B #311F01 #013107 #011331
square
#31012B #311F01 #013107 #011331
split-complementary
#31012B #133101 #01311F
monochromatic
#1E011A #1E011A #31012B #6D0260 #A90394

Accessibility & contrast

On white

17.95
#31012B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31012B
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31012B#FFFFFF#000000##FFFFFF
##31012B1.0017.951.1717.95
#FFFFFF17.951.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122C
Deuteranopia (green-blind)
#12192A
Tritanopia (blue-blind)
#340515
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #31012b;
/* rgb */ color: rgb(49, 1, 43);
/* oklch */ color: oklch(21.7% 0.094 334.1);
Tailwind
colors: {
  custom: {
    50: '#6c4864',
    500: '#31012b',
    950: '#000000',
  },
}
SCSS
$custom: #31012b;
$custom-light: #6c4864;
$custom-dark: #000000;
JSON
{
  "hex": "#31012b",
  "rgb": {
    "r": 49,
    "g": 1,
    "b": 43
  },
  "hsl": {
    "h": 307.5,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.21668,
    "c": 0.09415,
    "h": 334.1
  },
  "luminance": 0.00849
}

Semantic roles & 50–950 ramp

primary
#31012B
secondary
#177723
accent
#FF4429
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #31012B

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

Preview Lab → · Contrast checker → · Palette generator →

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