#391E87#391E87

#391E87 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.161 H 286.2°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#391E87
RGBrgb(57, 30, 135)
HSLhsl(255, 64%, 32%)
HSVhsv(255, 78%, 53%)
CMYKcmyk(57.8%, 77.8%, 0%, 47.1%)
CIE-LABlab(22.11, 40.43, -53.84)
CIE-LCHlch(22.11, 67.33, 306.90°)
OKLaboklab(34.66% 0.0452 -0.155)
OKLCHoklch(34.66% 0.161 286.2)
XYZxyz(6.5235, 3.5473, 23.2579)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391E87 #6C871E
analogous
#1E3787 #391E87 #6E1E87
triadic
#391E87 #87391E #1E8739
tetradic
#391E87 #871E37 #6C871E #1E876E
square
#391E87 #871E37 #6C871E #1E876E
split-complementary
#391E87 #876E1E #37871E
monochromatic
#0F0823 #241355 #391E87 #4E29B9 #6D49D7

Accessibility & contrast

On white

12.28
#391E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#391E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391E87
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391E87#FFFFFF#000000##FFFFFF
##391E871.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#143C51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #391e87;
/* rgb */ color: rgb(57, 30, 135);
/* oklch */ color: oklch(34.7% 0.161 286.2);
Tailwind
colors: {
  custom: {
    50: '#795dab',
    500: '#391e87',
    950: '#000000',
  },
}
SCSS
$custom: #391e87;
$custom-light: #795dab;
$custom-dark: #000000;
JSON
{
  "hex": "#391e87",
  "rgb": {
    "r": 57,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 255.429,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34664,
    "c": 0.16144,
    "h": 286.2
  },
  "luminance": 0.03548
}

Semantic roles & 50–950 ramp

primary
#391E87
secondary
#9CB948
accent
#E741BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391E87

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

Preview Lab → · Contrast checker → · Palette generator →

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