#31063B#31063B

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

Color values

HEX#31063B
RGBrgb(49, 6, 59)
HSLhsl(289, 82%, 13%)
HSVhsv(289, 90%, 23%)
CMYKcmyk(16.9%, 89.8%, 0%, 76.9%)
CIE-LABlab(9.79, 29.60, -23.31)
CIE-LCHlch(9.79, 37.68, 321.78°)
OKLaboklab(23.55% 0.0757 -0.0655)
OKLCHoklch(23.55% 0.1 319.1)
XYZxyz(2.1211, 1.0991, 4.2372)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31063B #103B06
analogous
#16063B #31063B #3B062A
triadic
#31063B #3B3106 #063B31
tetradic
#31063B #3B1606 #103B06 #062A3B
square
#31063B #3B1606 #103B06 #062A3B
split-complementary
#31063B #2A3B06 #063B16
monochromatic
#17031C #17031C #31063B #5F0C73 #8D11AA

Accessibility & contrast

On white

17.22
#31063B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31063B
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31063B#FFFFFF#000000##FFFFFF
##31063B1.0017.221.2217.22
#FFFFFF17.221.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183C
Deuteranopia (green-blind)
#091C3A
Tritanopia (blue-blind)
#311120
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #31063b;
/* rgb */ color: rgb(49, 6, 59);
/* oklch */ color: oklch(23.6% 0.100 319.1);
Tailwind
colors: {
  custom: {
    50: '#6c4c71',
    500: '#31063b',
    950: '#000000',
  },
}
SCSS
$custom: #31063b;
$custom-light: #6c4c71;
$custom-dark: #000000;
JSON
{
  "hex": "#31063b",
  "rgb": {
    "r": 49,
    "g": 6,
    "b": 59
  },
  "hsl": {
    "h": 288.679,
    "s": 81.538,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23554,
    "c": 0.10009,
    "h": 319.1
  },
  "luminance": 0.01099
}

Semantic roles & 50–950 ramp

primary
#31063B
secondary
#337B22
accent
#F83056
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070108
muted
#7A777B

Preview Lab

Preview with #31063B

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

Preview Lab → · Contrast checker → · Palette generator →

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