#391A8E#391A8E

#391A8E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.174 H 285.3°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#391A8E
RGBrgb(57, 26, 142)
HSLhsl(256, 69%, 33%)
HSVhsv(256, 82%, 56%)
CMYKcmyk(59.9%, 81.7%, 0%, 44.3%)
CIE-LABlab(22.16, 44.46, -58.13)
CIE-LCHlch(22.16, 73.18, 307.41°)
OKLaboklab(34.92% 0.0458 -0.1675)
OKLCHoklch(34.92% 0.174 285.3)
XYZxyz(6.9377, 3.5612, 25.9077)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391A8E #6F8E1A
analogous
#1A358E #391A8E #731A8E
triadic
#391A8E #8E391A #1A8E39
tetradic
#391A8E #8E1A35 #6F8E1A #1A8E73
square
#391A8E #8E1A35 #6F8E1A #1A8E73
split-complementary
#391A8E #8E731A #358E1A
monochromatic
#0F0727 #24115A #391A8E #4E23C2 #6E45DD

Accessibility & contrast

On white

12.26
#391A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391A8E
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391A8E#FFFFFF#000000##FFFFFF
##391A8E1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#073D54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #391a8e;
/* rgb */ color: rgb(57, 26, 142);
/* oklch */ color: oklch(34.9% 0.174 285.3);
Tailwind
colors: {
  custom: {
    50: '#7b5cb0',
    500: '#391a8e',
    950: '#000000',
  },
}
SCSS
$custom: #391a8e;
$custom-light: #7b5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#391a8e",
  "rgb": {
    "r": 57,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 256.034,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34917,
    "c": 0.17365,
    "h": 285.3
  },
  "luminance": 0.03562
}

Semantic roles & 50–950 ramp

primary
#391A8E
secondary
#9EBE45
accent
#EC3CBD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #391A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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