#391EA1#391EA1

#391EA1 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.192 H 281.2°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#391EA1
RGBrgb(57, 30, 161)
HSLhsl(252, 69%, 37%)
HSVhsv(252, 81%, 63%)
CMYKcmyk(64.6%, 81.4%, 0%, 36.9%)
CIE-LABlab(24.86, 48.19, -65.37)
CIE-LCHlch(24.86, 81.21, 306.40°)
OKLaboklab(37.4% 0.0373 -0.1887)
OKLCHoklch(37.4% 0.192 281.2)
XYZxyz(8.5826, 4.3710, 34.1027)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391EA1 #86A11E
analogous
#1E45A1 #391EA1 #7A1EA1
triadic
#391EA1 #A1391E #1EA139
tetradic
#391EA1 #A11E45 #86A11E #1EA17A
square
#391EA1 #A11E45 #86A11E #1EA17A
split-complementary
#391EA1 #A17A1E #45A11E
monochromatic
#140B3A #27146D #391EA1 #4B28D5 #7559E0

Accessibility & contrast

On white

11.20
#391EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#391EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391EA1
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391EA1#FFFFFF#000000##FFFFFF
##391EA11.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #391ea1;
/* rgb */ color: rgb(57, 30, 161);
/* oklch */ color: oklch(37.4% 0.192 281.2);
Tailwind
colors: {
  custom: {
    50: '#7e5fbe',
    500: '#391ea1',
    950: '#000000',
  },
}
SCSS
$custom: #391ea1;
$custom-light: #7e5fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#391ea1",
  "rgb": {
    "r": 57,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 252.366,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37398,
    "c": 0.1923,
    "h": 281.2
  },
  "luminance": 0.04372
}

Semantic roles & 50–950 ramp

primary
#391EA1
secondary
#ADC457
accent
#EB3CC7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #391EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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