#311C91#311C91

#311C91 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.177 H 280.2°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#311C91
RGBrgb(49, 28, 145)
HSLhsl(251, 68%, 34%)
HSVhsv(251, 81%, 57%)
CMYKcmyk(66.2%, 80.7%, 0%, 43.1%)
CIE-LABlab(22.04, 43.50, -60.22)
CIE-LCHlch(22.04, 74.29, 305.84°)
OKLaboklab(34.74% 0.0311 -0.1738)
OKLCHoklch(34.74% 0.177 280.2)
XYZxyz(6.7911, 3.5273, 27.1055)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C91 #7C911C
analogous
#1C4291 #311C91 #6C1C91
triadic
#311C91 #91311C #1C9131
tetradic
#311C91 #911C42 #7C911C #1C916C
square
#311C91 #911C42 #7C911C #1C916C
split-complementary
#311C91 #916C1C #42911C
monochromatic
#0E082A #20125E #311C91 #4226C4 #654BDC

Accessibility & contrast

On white

12.31
#311C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#311C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C91
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C91#FFFFFF#000000##FFFFFF
##311C911.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003994
Deuteranopia (green-blind)
#00308F
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #311c91;
/* rgb */ color: rgb(49, 28, 145);
/* oklch */ color: oklch(34.7% 0.177 280.2);
Tailwind
colors: {
  custom: {
    50: '#775cb2',
    500: '#311c91',
    950: '#000000',
  },
}
SCSS
$custom: #311c91;
$custom-light: #775cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#311c91",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 145
  },
  "hsl": {
    "h": 250.769,
    "s": 67.63,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3474,
    "c": 0.17662,
    "h": 280.2
  },
  "luminance": 0.03528
}

Semantic roles & 50–950 ramp

primary
#311C91
secondary
#AABE4A
accent
#EB3DCB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311C91

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

Preview Lab → · Contrast checker → · Palette generator →

#311C91 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva