#391AA1#391AA1

#391AA1 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.195 H 281.6°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#391AA1
RGBrgb(57, 26, 161)
HSLhsl(254, 72%, 37%)
HSVhsv(254, 84%, 63%)
CMYKcmyk(64.6%, 83.9%, 0%, 36.9%)
CIE-LABlab(24.26, 49.95, -66.36)
CIE-LCHlch(24.26, 83.06, 306.97°)
OKLaboklab(36.99% 0.0393 -0.1915)
OKLCHoklch(36.99% 0.195 281.6)
XYZxyz(8.4877, 4.1812, 34.0711)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391AA1 #82A11A
analogous
#1A3EA1 #391AA1 #7D1AA1
triadic
#391AA1 #A1391A #1AA139
tetradic
#391AA1 #A11A3E #82A11A #1AA17D
square
#391AA1 #A11A3E #82A11A #1AA17D
split-complementary
#391AA1 #A17D1A #3EA11A
monochromatic
#140938 #26116C #391AA1 #4C23D6 #7452E3

Accessibility & contrast

On white

11.44
#391AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#391AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391AA1
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391AA1#FFFFFF#000000##FFFFFF
##391AA11.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #391aa1;
/* rgb */ color: rgb(57, 26, 161);
/* oklch */ color: oklch(37.0% 0.195 281.6);
Tailwind
colors: {
  custom: {
    50: '#7e5dbe',
    500: '#391aa1',
    950: '#000000',
  },
}
SCSS
$custom: #391aa1;
$custom-light: #7e5dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#391aa1",
  "rgb": {
    "r": 57,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 253.778,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36985,
    "c": 0.19547,
    "h": 281.6
  },
  "luminance": 0.04182
}

Semantic roles & 50–950 ramp

primary
#391AA1
secondary
#ABC651
accent
#EF39C5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #391AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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