#31115A#31115A

#31115A is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.121 H 297.8°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#31115A
RGBrgb(49, 17, 90)
HSLhsl(266, 68%, 21%)
HSVhsv(266, 81%, 35%)
CMYKcmyk(45.6%, 81.1%, 0%, 64.7%)
CIE-LABlab(14.36, 32.47, -37.42)
CIE-LCHlch(14.36, 49.55, 310.95°)
OKLaboklab(27.63% 0.0564 -0.1071)
OKLCHoklch(27.63% 0.121 297.8)
XYZxyz(3.3121, 1.7920, 9.8423)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31115A #3A5A11
analogous
#11165A #31115A #55115A
triadic
#31115A #5A3111 #115A31
tetradic
#31115A #5A1116 #3A5A11 #115A55
square
#31115A #5A1116 #3A5A11 #115A55
split-complementary
#31115A #5A5511 #165A11
monochromatic
#0E051A #150727 #31115A #4D1B8D #6924C1

Accessibility & contrast

On white

15.46
#31115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#31115A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31115A
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31115A#FFFFFF#000000##FFFFFF
##31115A1.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#272435
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #31115a;
/* rgb */ color: rgb(49, 17, 90);
/* oklch */ color: oklch(27.6% 0.121 297.8);
Tailwind
colors: {
  custom: {
    50: '#6e5389',
    500: '#31115a',
    950: '#000000',
  },
}
SCSS
$custom: #31115a;
$custom-light: #6e5389;
$custom-dark: #000000;
JSON
{
  "hex": "#31115a",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 266.301,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27633,
    "c": 0.12101,
    "h": 297.8
  },
  "luminance": 0.01792
}

Semantic roles & 50–950 ramp

primary
#31115A
secondary
#699334
accent
#EB3D9F
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #31115A

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

Preview Lab → · Contrast checker → · Palette generator →

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