#391B84#391B84

#391B84 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.161 H 287.5°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#391B84
RGBrgb(57, 27, 132)
HSLhsl(257, 66%, 31%)
HSVhsv(257, 80%, 52%)
CMYKcmyk(56.8%, 79.5%, 0%, 48.2%)
CIE-LABlab(21.28, 41.05, -53.33)
CIE-LCHlch(21.28, 67.30, 307.59°)
OKLaboklab(33.99% 0.0483 -0.1535)
OKLCHoklch(33.99% 0.161 287.5)
XYZxyz(6.2429, 3.3193, 22.1371)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B84 #66841B
analogous
#1B3184 #391B84 #6D1B84
triadic
#391B84 #84391B #1B8439
tetradic
#391B84 #841B31 #66841B #1B846D
square
#391B84 #841B31 #66841B #1B846D
split-complementary
#391B84 #846D1B #31841B
monochromatic
#0D061E #231151 #391B84 #4F25B7 #6C41D8

Accessibility & contrast

On white

12.62
#391B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#391B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B84
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B84#FFFFFF#000000##FFFFFF
##391B841.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#18394F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #391b84;
/* rgb */ color: rgb(57, 27, 132);
/* oklch */ color: oklch(34.0% 0.161 287.5);
Tailwind
colors: {
  custom: {
    50: '#795ba9',
    500: '#391b84',
    950: '#000000',
  },
}
SCSS
$custom: #391b84;
$custom-light: #795ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#391b84",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 257.143,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33987,
    "c": 0.16089,
    "h": 287.5
  },
  "luminance": 0.0332
}

Semantic roles & 50–950 ramp

primary
#391B84
secondary
#96B743
accent
#E93FB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391B84

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

Preview Lab → · Contrast checker → · Palette generator →

#391B84 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva