#31012C#31012C

#31012C is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.7% C 0.095 H 333.1°. Best body text is #FFFFFF at 17.93:1 contrast (WCAG AA passes).

Color values

HEX#31012C
RGBrgb(49, 1, 44)
HSLhsl(306, 96%, 10%)
HSVhsv(306, 98%, 19%)
CMYKcmyk(0%, 98%, 10.2%, 80.8%)
CIE-LABlab(7.74, 29.26, -15.58)
CIE-LCHlch(7.74, 33.15, 331.96°)
OKLaboklab(21.74% 0.0847 -0.0429)
OKLCHoklch(21.74% 0.095 333.1)
XYZxyz(1.7321, 0.8567, 2.4565)
Luminance0.0086 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31012C #013106
analogous
#1E0131 #31012C #310114
triadic
#31012C #2C3101 #012C31
tetradic
#31012C #311E01 #013106 #011431
square
#31012C #311E01 #013106 #011431
split-complementary
#31012C #143101 #01311E
monochromatic
#1E011B #1E011B #31012C #6D0262 #A90398

Accessibility & contrast

On white

17.93
#31012C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31012C
17.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31012C#FFFFFF#000000##FFFFFF
##31012C1.0017.931.1717.93
#FFFFFF17.931.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122D
Deuteranopia (green-blind)
#11192B
Tritanopia (blue-blind)
#340516
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #31012c;
/* rgb */ color: rgb(49, 1, 44);
/* oklch */ color: oklch(21.7% 0.095 333.1);
Tailwind
colors: {
  custom: {
    50: '#6c4865',
    500: '#31012c',
    950: '#000000',
  },
}
SCSS
$custom: #31012c;
$custom-light: #6c4865;
$custom-dark: #000000;
JSON
{
  "hex": "#31012c",
  "rgb": {
    "r": 49,
    "g": 1,
    "b": 44
  },
  "hsl": {
    "h": 306.25,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.21739,
    "c": 0.09496,
    "h": 333.1
  },
  "luminance": 0.00857
}

Semantic roles & 50–950 ramp

primary
#31012C
secondary
#177721
accent
#FF3F29
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #31012C

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

Preview Lab → · Contrast checker → · Palette generator →

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