#31012A#31012A

#31012A is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.6% C 0.093 H 335.2°. Best body text is #FFFFFF at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#31012A
RGBrgb(49, 1, 42)
HSLhsl(309, 96%, 10%)
HSVhsv(309, 98%, 19%)
CMYKcmyk(0%, 98%, 14.3%, 80.8%)
CIE-LABlab(7.61, 28.89, -14.29)
CIE-LCHlch(7.61, 32.23, 333.68°)
OKLaboklab(21.6% 0.0847 -0.0392)
OKLCHoklch(21.6% 0.093 335.2)
XYZxyz(1.6954, 0.8420, 2.2633)
Luminance0.0084 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31012A #013108
analogous
#200131 #31012A #310112
triadic
#31012A #2A3101 #012A31
tetradic
#31012A #312001 #013108 #011231
square
#31012A #312001 #013108 #011231
split-complementary
#31012A #123101 #013120
monochromatic
#1E011A #1E011A #31012A #6D025D #A90391

Accessibility & contrast

On white

17.97
#31012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31012A
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31012A#FFFFFF#000000##FFFFFF
##31012A1.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01122B
Deuteranopia (green-blind)
#121929
Tritanopia (blue-blind)
#340415
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #31012a;
/* rgb */ color: rgb(49, 1, 42);
/* oklch */ color: oklch(21.6% 0.093 335.2);
Tailwind
colors: {
  custom: {
    50: '#6c4863',
    500: '#31012a',
    950: '#000000',
  },
}
SCSS
$custom: #31012a;
$custom-light: #6c4863;
$custom-dark: #000000;
JSON
{
  "hex": "#31012a",
  "rgb": {
    "r": 49,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 308.75,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.21599,
    "c": 0.09334,
    "h": 335.2
  },
  "luminance": 0.00842
}

Semantic roles & 50–950 ramp

primary
#31012A
secondary
#177725
accent
#FF4829
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #31012A

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

Preview Lab → · Contrast checker → · Palette generator →

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