#31063C#31063C

#31063C is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.6% C 0.101 H 318.3°. Best body text is #FFFFFF at 17.19:1 contrast (WCAG AA passes).

Color values

HEX#31063C
RGBrgb(49, 6, 60)
HSLhsl(288, 82%, 13%)
HSVhsv(288, 90%, 24%)
CMYKcmyk(18.3%, 90%, 0%, 76.5%)
CIE-LABlab(9.87, 29.82, -23.89)
CIE-LCHlch(9.87, 38.22, 321.30°)
OKLaboklab(23.64% 0.0755 -0.0672)
OKLCHoklch(23.64% 0.101 318.3)
XYZxyz(2.1472, 1.1096, 4.3752)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31063C #113C06
analogous
#16063C #31063C #3C062C
triadic
#31063C #3C3106 #063C31
tetradic
#31063C #3C1606 #113C06 #062C3C
square
#31063C #3C1606 #113C06 #062C3C
split-complementary
#31063C #2C3C06 #063C16
monochromatic
#17031C #17031C #31063C #5E0C74 #8C11AB

Accessibility & contrast

On white

17.19
#31063C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31063C
17.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31063C#FFFFFF#000000##FFFFFF
##31063C1.0017.191.2217.19
#FFFFFF17.191.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193D
Deuteranopia (green-blind)
#081D3B
Tritanopia (blue-blind)
#311221
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #31063c;
/* rgb */ color: rgb(49, 6, 60);
/* oklch */ color: oklch(23.6% 0.101 318.3);
Tailwind
colors: {
  custom: {
    50: '#6c4c72',
    500: '#31063c',
    950: '#000000',
  },
}
SCSS
$custom: #31063c;
$custom-light: #6c4c72;
$custom-dark: #000000;
JSON
{
  "hex": "#31063c",
  "rgb": {
    "r": 49,
    "g": 6,
    "b": 60
  },
  "hsl": {
    "h": 287.778,
    "s": 81.818,
    "l": 12.941
  },
  "oklch": {
    "l": 0.23638,
    "c": 0.10109,
    "h": 318.3
  },
  "luminance": 0.01109
}

Semantic roles & 50–950 ramp

primary
#31063C
secondary
#347C22
accent
#F83058
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070108
muted
#7A777B

Preview Lab

Preview with #31063C

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

Preview Lab → · Contrast checker → · Palette generator →

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