#31105C#31105C

#31105C is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.125 H 297.1°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#31105C
RGBrgb(49, 16, 92)
HSLhsl(266, 70%, 21%)
HSVhsv(266, 83%, 36%)
CMYKcmyk(46.7%, 82.6%, 0%, 63.9%)
CIE-LABlab(14.38, 33.53, -38.73)
CIE-LCHlch(14.38, 51.22, 310.89°)
OKLaboklab(27.71% 0.0567 -0.1109)
OKLCHoklch(27.71% 0.125 297.1)
XYZxyz(3.3832, 1.7962, 10.2916)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31105C #3B5C10
analogous
#10155C #31105C #57105C
triadic
#31105C #5C3110 #105C31
tetradic
#31105C #5C1015 #3B5C10 #105C57
square
#31105C #5C1015 #3B5C10 #105C57
split-complementary
#31105C #5C5710 #155C10
monochromatic
#0E051A #150728 #31105C #4D1990 #6922C4

Accessibility & contrast

On white

15.45
#31105C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31105C
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31105C#FFFFFF#000000##FFFFFF
##31105C1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#262536
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #31105c;
/* rgb */ color: rgb(49, 16, 92);
/* oklch */ color: oklch(27.7% 0.125 297.1);
Tailwind
colors: {
  custom: {
    50: '#6e528b',
    500: '#31105c',
    950: '#000000',
  },
}
SCSS
$custom: #31105c;
$custom-light: #6e528b;
$custom-dark: #000000;
JSON
{
  "hex": "#31105c",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 92
  },
  "hsl": {
    "h": 266.053,
    "s": 70.37,
    "l": 21.176
  },
  "oklch": {
    "l": 0.2771,
    "c": 0.12456,
    "h": 297.1
  },
  "luminance": 0.01796
}

Semantic roles & 50–950 ramp

primary
#31105C
secondary
#6A9533
accent
#ED3BA0
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #31105C

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

Preview Lab → · Contrast checker → · Palette generator →

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