#391B87#391B87

#391B87 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.164 H 286.7°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#391B87
RGBrgb(57, 27, 135)
HSLhsl(257, 67%, 32%)
HSVhsv(257, 80%, 53%)
CMYKcmyk(57.8%, 80%, 0%, 47.1%)
CIE-LABlab(21.59, 41.93, -54.70)
CIE-LCHlch(21.59, 68.93, 307.47°)
OKLaboklab(34.3% 0.0474 -0.1575)
OKLCHoklch(34.3% 0.164 286.7)
XYZxyz(6.4511, 3.4026, 23.2338)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B87 #69871B
analogous
#1B3387 #391B87 #6F1B87
triadic
#391B87 #87391B #1B8739
tetradic
#391B87 #871B33 #69871B #1B876F
square
#391B87 #871B33 #69871B #1B876F
split-complementary
#391B87 #876F1B #33871B
monochromatic
#0E0721 #231154 #391B87 #4F25BA #6D43D9

Accessibility & contrast

On white

12.50
#391B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#391B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B87
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B87#FFFFFF#000000##FFFFFF
##391B871.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#143A51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #391b87;
/* rgb */ color: rgb(57, 27, 135);
/* oklch */ color: oklch(34.3% 0.164 286.7);
Tailwind
colors: {
  custom: {
    50: '#795cab',
    500: '#391b87',
    950: '#000000',
  },
}
SCSS
$custom: #391b87;
$custom-light: #795cab;
$custom-dark: #000000;
JSON
{
  "hex": "#391b87",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 256.667,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34296,
    "c": 0.16447,
    "h": 286.7
  },
  "luminance": 0.03403
}

Semantic roles & 50–950 ramp

primary
#391B87
secondary
#99BA44
accent
#EA3EBA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391B87

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

Preview Lab → · Contrast checker → · Palette generator →

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