#31053A#31053A

#31053A is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.4% C 0.101 H 320.1°. Best body text is #FFFFFF at 17.31:1 contrast (WCAG AA passes).

Color values

HEX#31053A
RGBrgb(49, 5, 58)
HSLhsl(290, 84%, 12%)
HSVhsv(290, 91%, 23%)
CMYKcmyk(15.5%, 91.4%, 0%, 77.3%)
CIE-LABlab(9.54, 29.88, -22.99)
CIE-LCHlch(9.54, 37.70, 322.42°)
OKLaboklab(23.35% 0.0771 -0.0646)
OKLCHoklch(23.35% 0.101 320.1)
XYZxyz(2.0845, 1.0671, 4.0983)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31053A #0E3A05
analogous
#16053A #31053A #3A0529
triadic
#31053A #3A3105 #053A31
tetradic
#31053A #3A1605 #0E3A05 #05293A
square
#31053A #3A1605 #0E3A05 #05293A
split-complementary
#31053A #293A05 #053A16
monochromatic
#18021C #18021C #31053A #610A72 #900FAB

Accessibility & contrast

On white

17.31
#31053A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#31053A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31053A
17.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31053A#FFFFFF#000000##FFFFFF
##31053A1.0017.311.2117.31
#FFFFFF17.311.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183B
Deuteranopia (green-blind)
#0A1C39
Tritanopia (blue-blind)
#31101F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #31053a;
/* rgb */ color: rgb(49, 5, 58);
/* oklch */ color: oklch(23.4% 0.101 320.1);
Tailwind
colors: {
  custom: {
    50: '#6c4b70',
    500: '#31053a',
    950: '#000000',
  },
}
SCSS
$custom: #31053a;
$custom-light: #6c4b70;
$custom-dark: #000000;
JSON
{
  "hex": "#31053a",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 58
  },
  "hsl": {
    "h": 289.811,
    "s": 84.127,
    "l": 12.353
  },
  "oklch": {
    "l": 0.2335,
    "c": 0.10061,
    "h": 320.1
  },
  "luminance": 0.01067
}

Semantic roles & 50–950 ramp

primary
#31053A
secondary
#2F7B20
accent
#FA2D50
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #31053A

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

Preview Lab → · Contrast checker → · Palette generator →

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