#31063F#31063F

#31063F is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.9% C 0.104 H 316.0°. Best body text is #FFFFFF at 17.10:1 contrast (WCAG AA passes).

Color values

HEX#31063F
RGBrgb(49, 6, 63)
HSLhsl(285, 83%, 14%)
HSVhsv(285, 90%, 25%)
CMYKcmyk(22.2%, 90.5%, 0%, 75.3%)
CIE-LABlab(10.12, 30.51, -25.63)
CIE-LCHlch(10.12, 39.85, 319.96°)
OKLaboklab(23.89% 0.0749 -0.0723)
OKLCHoklch(23.89% 0.104 316)
XYZxyz(2.2288, 1.1422, 4.8047)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31063F #143F06
analogous
#14063F #31063F #3F0630
triadic
#31063F #3F3106 #063F31
tetradic
#31063F #3F1406 #143F06 #06303F
square
#31063F #3F1406 #143F06 #06303F
split-complementary
#31063F #303F06 #063F14
monochromatic
#16031C #16031C #31063F #5C0B77 #8811AF

Accessibility & contrast

On white

17.10
#31063F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#31063F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31063F
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31063F#FFFFFF#000000##FFFFFF
##31063F1.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001941
Deuteranopia (green-blind)
#051D3E
Tritanopia (blue-blind)
#301323
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #31063f;
/* rgb */ color: rgb(49, 6, 63);
/* oklch */ color: oklch(23.9% 0.104 316.0);
Tailwind
colors: {
  custom: {
    50: '#6c4c74',
    500: '#31063f',
    950: '#000000',
  },
}
SCSS
$custom: #31063f;
$custom-light: #6c4c74;
$custom-dark: #000000;
JSON
{
  "hex": "#31063f",
  "rgb": {
    "r": 49,
    "g": 6,
    "b": 63
  },
  "hsl": {
    "h": 285.263,
    "s": 82.609,
    "l": 13.529
  },
  "oklch": {
    "l": 0.23894,
    "c": 0.10412,
    "h": 316
  },
  "luminance": 0.01142
}

Semantic roles & 50–950 ramp

primary
#31063F
secondary
#397F22
accent
#F92F60
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #31063F

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

Preview Lab → · Contrast checker → · Palette generator →

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