#31012F#31012F

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

Color values

HEX#31012F
RGBrgb(49, 1, 47)
HSLhsl(303, 96%, 10%)
HSVhsv(303, 98%, 19%)
CMYKcmyk(0%, 98%, 4.1%, 80.8%)
CIE-LABlab(7.95, 29.81, -17.49)
CIE-LCHlch(7.95, 34.56, 329.60°)
OKLaboklab(21.96% 0.0845 -0.0484)
OKLCHoklch(21.96% 0.097 330.2)
XYZxyz(1.7906, 0.8801, 2.7643)
Luminance0.0088 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31012F #013103
analogous
#1B0131 #31012F #310117
triadic
#31012F #2F3101 #012F31
tetradic
#31012F #311B01 #013103 #011731
square
#31012F #311B01 #013103 #011731
split-complementary
#31012F #173101 #01311B
monochromatic
#1E011D #1E011D #31012F #6D0269 #A903A2

Accessibility & contrast

On white

17.86
#31012F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#31012F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31012F
17.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31012F#FFFFFF#000000##FFFFFF
##31012F1.0017.861.1817.86
#FFFFFF17.861.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001330
Deuteranopia (green-blind)
#101A2E
Tritanopia (blue-blind)
#330718
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #31012f;
/* rgb */ color: rgb(49, 1, 47);
/* oklch */ color: oklch(22.0% 0.097 330.2);
Tailwind
colors: {
  custom: {
    50: '#6c4868',
    500: '#31012f',
    950: '#000000',
  },
}
SCSS
$custom: #31012f;
$custom-light: #6c4868;
$custom-dark: #000000;
JSON
{
  "hex": "#31012f",
  "rgb": {
    "r": 49,
    "g": 1,
    "b": 47
  },
  "hsl": {
    "h": 302.5,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.21959,
    "c": 0.09744,
    "h": 330.2
  },
  "luminance": 0.0088
}

Semantic roles & 50–950 ramp

primary
#31012F
secondary
#17771B
accent
#FF3229
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #31012F

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

Preview Lab → · Contrast checker → · Palette generator →

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