#31105D#31105D

#31105D is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.126 H 296.7°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#31105D
RGBrgb(49, 16, 93)
HSLhsl(266, 71%, 21%)
HSVhsv(266, 83%, 36%)
CMYKcmyk(47.3%, 82.8%, 0%, 63.5%)
CIE-LABlab(14.48, 33.81, -39.23)
CIE-LCHlch(14.48, 51.79, 310.76°)
OKLaboklab(27.81% 0.0564 -0.1124)
OKLCHoklch(27.81% 0.126 296.7)
XYZxyz(3.4272, 1.8138, 10.5233)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31105D #3C5D10
analogous
#10165D #31105D #58105D
triadic
#31105D #5D3110 #105D31
tetradic
#31105D #5D1016 #3C5D10 #105D58
square
#31105D #5D1016 #3C5D10 #105D58
split-complementary
#31105D #5D5810 #165D10
monochromatic
#0E041A #150729 #31105D #4D1991 #6822C5

Accessibility & contrast

On white

15.41
#31105D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#31105D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31105D
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31105D#FFFFFF#000000##FFFFFF
##31105D1.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#252536
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #31105d;
/* rgb */ color: rgb(49, 16, 93);
/* oklch */ color: oklch(27.8% 0.126 296.7);
Tailwind
colors: {
  custom: {
    50: '#6f528c',
    500: '#31105d',
    950: '#000000',
  },
}
SCSS
$custom: #31105d;
$custom-light: #6f528c;
$custom-dark: #000000;
JSON
{
  "hex": "#31105d",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 93
  },
  "hsl": {
    "h": 265.714,
    "s": 70.642,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27809,
    "c": 0.12575,
    "h": 296.7
  },
  "luminance": 0.01814
}

Semantic roles & 50–950 ramp

primary
#31105D
secondary
#6B9633
accent
#ED3AA1
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #31105D

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

Preview Lab → · Contrast checker → · Palette generator →

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