#391A86#391A86

#391A86 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.164 H 287.1°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#391A86
RGBrgb(57, 26, 134)
HSLhsl(257, 68%, 31%)
HSVhsv(257, 81%, 53%)
CMYKcmyk(57.5%, 80.6%, 0%, 47.5%)
CIE-LABlab(21.32, 42.12, -54.52)
CIE-LCHlch(21.32, 68.90, 307.69°)
OKLaboklab(34.08% 0.0484 -0.1569)
OKLCHoklch(34.08% 0.164 287.1)
XYZxyz(6.3585, 3.3295, 22.8572)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391A86 #67861A
analogous
#1A3186 #391A86 #6F1A86
triadic
#391A86 #86391A #1A8639
tetradic
#391A86 #861A31 #67861A #1A866F
square
#391A86 #861A31 #67861A #1A866F
split-complementary
#391A86 #866F1A #31861A
monochromatic
#0D061F #231053 #391A86 #4F24B9 #6C40DA

Accessibility & contrast

On white

12.61
#391A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391A86
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391A86#FFFFFF#000000##FFFFFF
##391A861.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#163950
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #391a86;
/* rgb */ color: rgb(57, 26, 134);
/* oklch */ color: oklch(34.1% 0.164 287.1);
Tailwind
colors: {
  custom: {
    50: '#795baa',
    500: '#391a86',
    950: '#000000',
  },
}
SCSS
$custom: #391a86;
$custom-light: #795baa;
$custom-dark: #000000;
JSON
{
  "hex": "#391a86",
  "rgb": {
    "r": 57,
    "g": 26,
    "b": 134
  },
  "hsl": {
    "h": 257.222,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34076,
    "c": 0.16425,
    "h": 287.1
  },
  "luminance": 0.0333
}

Semantic roles & 50–950 ramp

primary
#391A86
secondary
#97B942
accent
#EA3DB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391A86

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

Preview Lab → · Contrast checker → · Palette generator →

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