#31033A#31033A

#31033A is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.1% C 0.104 H 320.3°. Best body text is #FFFFFF at 17.43:1 contrast (WCAG AA passes).

Color values

HEX#31033A
RGBrgb(49, 3, 58)
HSLhsl(290, 90%, 12%)
HSVhsv(290, 95%, 23%)
CMYKcmyk(15.5%, 94.8%, 0%, 77.3%)
CIE-LABlab(9.19, 30.90, -23.56)
CIE-LCHlch(9.19, 38.86, 322.68°)
OKLaboklab(23.1% 0.0799 -0.0662)
OKLCHoklch(23.1% 0.104 320.3)
XYZxyz(2.0628, 1.0237, 4.0911)
Luminance0.0102 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31033A #0C3A03
analogous
#16033A #31033A #3A0328
triadic
#31033A #3A3103 #033A31
tetradic
#31033A #3A1603 #0C3A03 #03283A
square
#31033A #3A1603 #0C3A03 #03283A
split-complementary
#31033A #283A03 #033A16
monochromatic
#19021D #19021D #31033A #620674 #9309AE

Accessibility & contrast

On white

17.43
#31033A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#31033A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31033A
17.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31033A#FFFFFF#000000##FFFFFF
##31033A1.0017.431.2017.43
#FFFFFF17.431.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173B
Deuteranopia (green-blind)
#081B39
Tritanopia (blue-blind)
#310F1F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #31033a;
/* rgb */ color: rgb(49, 3, 58);
/* oklch */ color: oklch(23.1% 0.104 320.3);
Tailwind
colors: {
  custom: {
    50: '#6c4a70',
    500: '#31033a',
    950: '#000000',
  },
}
SCSS
$custom: #31033a;
$custom-light: #6c4a70;
$custom-dark: #000000;
JSON
{
  "hex": "#31033a",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 58
  },
  "hsl": {
    "h": 290.182,
    "s": 90.164,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23104,
    "c": 0.10374,
    "h": 320.3
  },
  "luminance": 0.01024
}

Semantic roles & 50–950 ramp

primary
#31033A
secondary
#2C7D1C
accent
#FF294C
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #31033A

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

Preview Lab → · Contrast checker → · Palette generator →

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