#31063D#31063D

#31063D is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.7% C 0.102 H 317.5°. Best body text is #FFFFFF at 17.16:1 contrast (WCAG AA passes).

Color values

HEX#31063D
RGBrgb(49, 6, 61)
HSLhsl(287, 82%, 13%)
HSVhsv(287, 90%, 24%)
CMYKcmyk(19.7%, 90.2%, 0%, 76.1%)
CIE-LABlab(9.96, 30.05, -24.48)
CIE-LCHlch(9.96, 38.76, 320.84°)
OKLaboklab(23.72% 0.0753 -0.0689)
OKLCHoklch(23.72% 0.102 317.5)
XYZxyz(2.1739, 1.1202, 4.5157)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31063D #123D06
analogous
#15063D #31063D #3D062D
triadic
#31063D #3D3106 #063D31
tetradic
#31063D #3D1506 #123D06 #062D3D
square
#31063D #3D1506 #123D06 #062D3D
split-complementary
#31063D #2D3D06 #063D15
monochromatic
#16031C #16031C #31063D #5E0B75 #8B11AC

Accessibility & contrast

On white

17.16
#31063D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31063D
17.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31063D#FFFFFF#000000##FFFFFF
##31063D1.0017.161.2217.16
#FFFFFF17.161.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193E
Deuteranopia (green-blind)
#071D3C
Tritanopia (blue-blind)
#301221
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #31063d;
/* rgb */ color: rgb(49, 6, 61);
/* oklch */ color: oklch(23.7% 0.102 317.5);
Tailwind
colors: {
  custom: {
    50: '#6c4c73',
    500: '#31063d',
    950: '#000000',
  },
}
SCSS
$custom: #31063d;
$custom-light: #6c4c73;
$custom-dark: #000000;
JSON
{
  "hex": "#31063d",
  "rgb": {
    "r": 49,
    "g": 6,
    "b": 61
  },
  "hsl": {
    "h": 286.909,
    "s": 82.09,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23722,
    "c": 0.1021,
    "h": 317.5
  },
  "luminance": 0.0112
}

Semantic roles & 50–950 ramp

primary
#31063D
secondary
#367D22
accent
#F82F5B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #31063D

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

Preview Lab → · Contrast checker → · Palette generator →

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