#31053C#31053C

#31053C is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.5% C 0.103 H 318.5°. Best body text is #FFFFFF at 17.25:1 contrast (WCAG AA passes).

Color values

HEX#31053C
RGBrgb(49, 5, 60)
HSLhsl(288, 85%, 13%)
HSVhsv(288, 92%, 24%)
CMYKcmyk(18.3%, 91.7%, 0%, 76.5%)
CIE-LABlab(9.70, 30.32, -24.17)
CIE-LCHlch(9.70, 38.77, 321.44°)
OKLaboklab(23.52% 0.0768 -0.068)
OKLCHoklch(23.52% 0.103 318.5)
XYZxyz(2.1364, 1.0879, 4.3715)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31053C #103C05
analogous
#15053C #31053C #3C052B
triadic
#31053C #3C3105 #053C31
tetradic
#31053C #3C1505 #103C05 #052B3C
square
#31053C #3C1505 #103C05 #052B3C
split-complementary
#31053C #2B3C05 #053C15
monochromatic
#17021C #17021C #31053C #5F0A74 #8D0EAD

Accessibility & contrast

On white

17.25
#31053C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31053C
17.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31053C#FFFFFF#000000##FFFFFF
##31053C1.0017.251.2217.25
#FFFFFF17.251.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183D
Deuteranopia (green-blind)
#081C3B
Tritanopia (blue-blind)
#311121
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #31053c;
/* rgb */ color: rgb(49, 5, 60);
/* oklch */ color: oklch(23.5% 0.103 318.5);
Tailwind
colors: {
  custom: {
    50: '#6c4b72',
    500: '#31053c',
    950: '#000000',
  },
}
SCSS
$custom: #31053c;
$custom-light: #6c4b72;
$custom-dark: #000000;
JSON
{
  "hex": "#31053c",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 60
  },
  "hsl": {
    "h": 288,
    "s": 84.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23518,
    "c": 0.10258,
    "h": 318.5
  },
  "luminance": 0.01088
}

Semantic roles & 50–950 ramp

primary
#31053C
secondary
#337D20
accent
#FB2D56
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070108
muted
#7A777B

Preview Lab

Preview with #31053C

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

Preview Lab → · Contrast checker → · Palette generator →

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