#311987#311987

#311987 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.167 H 282.4°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#311987
RGBrgb(49, 25, 135)
HSLhsl(253, 69%, 31%)
HSVhsv(253, 81%, 53%)
CMYKcmyk(63.7%, 81.5%, 0%, 47.1%)
CIE-LABlab(20.43, 41.91, -56.65)
CIE-LCHlch(20.43, 70.47, 306.50°)
OKLaboklab(33.29% 0.0359 -0.1634)
OKLCHoklch(33.29% 0.167 282.4)
XYZxyz(5.9861, 3.0971, 23.1993)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311987 #6F8719
analogous
#193887 #311987 #681987
triadic
#311987 #873119 #198731
tetradic
#311987 #871938 #6F8719 #198768
square
#311987 #871938 #6F8719 #198768
split-complementary
#311987 #876819 #388719
monochromatic
#0C0620 #1E0F53 #311987 #4423BB #613FDB

Accessibility & contrast

On white

12.97
#311987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#311987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311987
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311987#FFFFFF#000000##FFFFFF
##3119871.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #311987;
/* rgb */ color: rgb(49, 25, 135);
/* oklch */ color: oklch(33.3% 0.167 282.4);
Tailwind
colors: {
  custom: {
    50: '#755aab',
    500: '#311987',
    950: '#000000',
  },
}
SCSS
$custom: #311987;
$custom-light: #755aab;
$custom-dark: #000000;
JSON
{
  "hex": "#311987",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 253.091,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3329,
    "c": 0.1673,
    "h": 282.4
  },
  "luminance": 0.03097
}

Semantic roles & 50–950 ramp

primary
#311987
secondary
#A0BA41
accent
#EC3CC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311987

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

Preview Lab → · Contrast checker → · Palette generator →

#311987 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva