#31115C#31115C

#31115C is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.123 H 296.9°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#31115C
RGBrgb(49, 17, 92)
HSLhsl(266, 69%, 21%)
HSVhsv(266, 82%, 36%)
CMYKcmyk(46.7%, 81.5%, 0%, 63.9%)
CIE-LABlab(14.55, 33.04, -38.45)
CIE-LCHlch(14.55, 50.70, 310.68°)
OKLaboklab(27.83% 0.0558 -0.1101)
OKLCHoklch(27.83% 0.123 296.9)
XYZxyz(3.3983, 1.8265, 10.2966)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31115C #3C5C11
analogous
#11175C #31115C #57115C
triadic
#31115C #5C3111 #115C31
tetradic
#31115C #5C1117 #3C5C11 #115C57
square
#31115C #5C1117 #3C5C11 #115C57
split-complementary
#31115C #5C5711 #175C11
monochromatic
#0E051A #150728 #31115C #4D1B90 #6824C3

Accessibility & contrast

On white

15.38
#31115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#31115C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31115C
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31115C#FFFFFF#000000##FFFFFF
##31115C1.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31115c;
/* rgb */ color: rgb(49, 17, 92);
/* oklch */ color: oklch(27.8% 0.123 296.9);
Tailwind
colors: {
  custom: {
    50: '#6e538b',
    500: '#31115c',
    950: '#000000',
  },
}
SCSS
$custom: #31115c;
$custom-light: #6e538b;
$custom-dark: #000000;
JSON
{
  "hex": "#31115c",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 265.6,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27829,
    "c": 0.12341,
    "h": 296.9
  },
  "luminance": 0.01827
}

Semantic roles & 50–950 ramp

primary
#31115C
secondary
#6B9534
accent
#EC3CA1
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #31115C

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

Preview Lab → · Contrast checker → · Palette generator →

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