#31053F#31053F

#31053F is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.8% C 0.106 H 316.1°. Best body text is #FFFFFF at 17.16:1 contrast (WCAG AA passes).

Color values

HEX#31053F
RGBrgb(49, 5, 63)
HSLhsl(286, 85%, 13%)
HSVhsv(286, 92%, 25%)
CMYKcmyk(22.2%, 92.1%, 0%, 75.3%)
CIE-LABlab(9.96, 31.00, -25.90)
CIE-LCHlch(9.96, 40.40, 320.12°)
OKLaboklab(23.78% 0.0761 -0.0731)
OKLCHoklch(23.78% 0.106 316.1)
XYZxyz(2.2180, 1.1205, 4.8011)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31053F #133F05
analogous
#14053F #31053F #3F0530
triadic
#31053F #3F3105 #053F31
tetradic
#31053F #3F1405 #133F05 #05303F
square
#31053F #3F1405 #133F05 #05303F
split-complementary
#31053F #303F05 #053F14
monochromatic
#16021C #16021C #31053F #5D0978 #890EB0

Accessibility & contrast

On white

17.16
#31053F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31053F
17.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31053F#FFFFFF#000000##FFFFFF
##31053F1.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)
#001941
Deuteranopia (green-blind)
#041D3E
Tritanopia (blue-blind)
#301322
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #31053f;
/* rgb */ color: rgb(49, 5, 63);
/* oklch */ color: oklch(23.8% 0.106 316.1);
Tailwind
colors: {
  custom: {
    50: '#6c4b74',
    500: '#31053f',
    950: '#000000',
  },
}
SCSS
$custom: #31053f;
$custom-light: #6c4b74;
$custom-dark: #000000;
JSON
{
  "hex": "#31053f",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 63
  },
  "hsl": {
    "h": 285.517,
    "s": 85.294,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23777,
    "c": 0.10554,
    "h": 316.1
  },
  "luminance": 0.0112
}

Semantic roles & 50–950 ramp

primary
#31053F
secondary
#378020
accent
#FC2C5E
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #31053F

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

Preview Lab → · Contrast checker → · Palette generator →

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