#31115B#31115B

#31115B is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.122 H 297.3°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#31115B
RGBrgb(49, 17, 91)
HSLhsl(266, 69%, 21%)
HSVhsv(266, 81%, 36%)
CMYKcmyk(46.2%, 81.3%, 0%, 64.3%)
CIE-LABlab(14.45, 32.76, -37.94)
CIE-LCHlch(14.45, 50.12, 310.81°)
OKLaboklab(27.73% 0.0561 -0.1086)
OKLCHoklch(27.73% 0.122 297.3)
XYZxyz(3.3549, 1.8091, 10.0679)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31115B #3B5B11
analogous
#11165B #31115B #56115B
triadic
#31115B #5B3111 #115B31
tetradic
#31115B #5B1116 #3B5B11 #115B56
square
#31115B #5B1116 #3B5B11 #115B56
split-complementary
#31115B #5B5611 #165B11
monochromatic
#0E051A #150727 #31115B #4D1B8F #6924C2

Accessibility & contrast

On white

15.42
#31115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31115B
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31115B#FFFFFF#000000##FFFFFF
##31115B1.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#262535
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #31115b;
/* rgb */ color: rgb(49, 17, 91);
/* oklch */ color: oklch(27.7% 0.122 297.3);
Tailwind
colors: {
  custom: {
    50: '#6e538a',
    500: '#31115b',
    950: '#000000',
  },
}
SCSS
$custom: #31115b;
$custom-light: #6e538a;
$custom-dark: #000000;
JSON
{
  "hex": "#31115b",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 265.946,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27731,
    "c": 0.12221,
    "h": 297.3
  },
  "luminance": 0.01809
}

Semantic roles & 50–950 ramp

primary
#31115B
secondary
#6A9434
accent
#EB3CA0
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #31115B

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

Preview Lab → · Contrast checker → · Palette generator →

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