#31115D#31115D

#31115D is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.125 H 296.4°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#31115D
RGBrgb(49, 17, 93)
HSLhsl(265, 69%, 22%)
HSVhsv(265, 82%, 36%)
CMYKcmyk(47.3%, 81.7%, 0%, 63.5%)
CIE-LABlab(14.65, 33.33, -38.96)
CIE-LCHlch(14.65, 51.27, 310.55°)
OKLaboklab(27.93% 0.0555 -0.1116)
OKLCHoklch(27.93% 0.125 296.4)
XYZxyz(3.4423, 1.8441, 10.5284)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31115D #3D5D11
analogous
#11175D #31115D #57115D
triadic
#31115D #5D3111 #115D31
tetradic
#31115D #5D1117 #3D5D11 #115D57
square
#31115D #5D1117 #3D5D11 #115D57
split-complementary
#31115D #5D5711 #175D11
monochromatic
#0E051A #160829 #31115D #4C1A91 #6824C4

Accessibility & contrast

On white

15.34
#31115D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31115D
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31115D#FFFFFF#000000##FFFFFF
##31115D1.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31115d;
/* rgb */ color: rgb(49, 17, 93);
/* oklch */ color: oklch(27.9% 0.125 296.4);
Tailwind
colors: {
  custom: {
    50: '#6e538c',
    500: '#31115d',
    950: '#000000',
  },
}
SCSS
$custom: #31115d;
$custom-light: #6e538c;
$custom-dark: #000000;
JSON
{
  "hex": "#31115d",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 93
  },
  "hsl": {
    "h": 265.263,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27928,
    "c": 0.12462,
    "h": 296.4
  },
  "luminance": 0.01844
}

Semantic roles & 50–950 ramp

primary
#31115D
secondary
#6D9634
accent
#EC3CA2
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #31115D

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

Preview Lab → · Contrast checker → · Palette generator →

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