#31063A#31063A

#31063A is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.5% C 0.099 H 319.9°. Best body text is #FFFFFF at 17.24:1 contrast (WCAG AA passes).

Color values

HEX#31063A
RGBrgb(49, 6, 58)
HSLhsl(290, 81%, 13%)
HSVhsv(290, 90%, 23%)
CMYKcmyk(15.5%, 89.7%, 0%, 77.3%)
CIE-LABlab(9.71, 29.38, -22.72)
CIE-LCHlch(9.71, 37.14, 322.29°)
OKLaboklab(23.47% 0.0758 -0.0638)
OKLCHoklch(23.47% 0.099 319.9)
XYZxyz(2.0954, 1.0888, 4.1020)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31063A #0F3A06
analogous
#17063A #31063A #3A0629
triadic
#31063A #3A3106 #063A31
tetradic
#31063A #3A1706 #0F3A06 #06293A
square
#31063A #3A1706 #0F3A06 #06293A
split-complementary
#31063A #293A06 #063A17
monochromatic
#17031C #17031C #31063A #600C71 #8F11A9

Accessibility & contrast

On white

17.24
#31063A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#31063A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31063A
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31063A#FFFFFF#000000##FFFFFF
##31063A1.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183B
Deuteranopia (green-blind)
#0B1C39
Tritanopia (blue-blind)
#311120
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #31063a;
/* rgb */ color: rgb(49, 6, 58);
/* oklch */ color: oklch(23.5% 0.099 319.9);
Tailwind
colors: {
  custom: {
    50: '#6c4b70',
    500: '#31063a',
    950: '#000000',
  },
}
SCSS
$custom: #31063a;
$custom-light: #6c4b70;
$custom-dark: #000000;
JSON
{
  "hex": "#31063a",
  "rgb": {
    "r": 49,
    "g": 6,
    "b": 58
  },
  "hsl": {
    "h": 289.615,
    "s": 81.25,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23472,
    "c": 0.09909,
    "h": 319.9
  },
  "luminance": 0.01089
}

Semantic roles & 50–950 ramp

primary
#31063A
secondary
#317A22
accent
#F83053
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #31063A

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

Preview Lab → · Contrast checker → · Palette generator →

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