#391A87#391A87

#391A87 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.165 H 286.9°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#391A87
RGBrgb(57, 26, 135)
HSLhsl(257, 68%, 32%)
HSVhsv(257, 81%, 53%)
CMYKcmyk(57.8%, 80.7%, 0%, 47.1%)
CIE-LABlab(21.42, 42.41, -54.98)
CIE-LCHlch(21.42, 69.44, 307.65°)
OKLaboklab(34.18% 0.0481 -0.1583)
OKLCHoklch(34.18% 0.165 286.9)
XYZxyz(6.4286, 3.3576, 23.2263)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391A87 #68871A
analogous
#1A3287 #391A87 #701A87
triadic
#391A87 #87391A #1A8739
tetradic
#391A87 #871A32 #68871A #1A8770
square
#391A87 #871A32 #68871A #1A8770
split-complementary
#391A87 #87701A #32871A
monochromatic
#0E0620 #231054 #391A87 #4F24BA #6D41DA

Accessibility & contrast

On white

12.56
#391A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#391A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391A87
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391A87#FFFFFF#000000##FFFFFF
##391A871.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#153A50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #391a87;
/* rgb */ color: rgb(57, 26, 135);
/* oklch */ color: oklch(34.2% 0.165 286.9);
Tailwind
colors: {
  custom: {
    50: '#795bab',
    500: '#391a87',
    950: '#000000',
  },
}
SCSS
$custom: #391a87;
$custom-light: #795bab;
$custom-dark: #000000;
JSON
{
  "hex": "#391a87",
  "rgb": {
    "r": 57,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 257.064,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3418,
    "c": 0.16543,
    "h": 286.9
  },
  "luminance": 0.03358
}

Semantic roles & 50–950 ramp

primary
#391A87
secondary
#98BA42
accent
#EB3DB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391A87

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

Preview Lab → · Contrast checker → · Palette generator →

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