#391FA1#391FA1

#391FA1 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.191 H 281.1°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#391FA1
RGBrgb(57, 31, 161)
HSLhsl(252, 68%, 38%)
HSVhsv(252, 81%, 63%)
CMYKcmyk(64.6%, 80.7%, 0%, 36.9%)
CIE-LABlab(25.02, 47.72, -65.11)
CIE-LCHlch(25.02, 80.73, 306.24°)
OKLaboklab(37.51% 0.0368 -0.1879)
OKLCHoklch(37.51% 0.191 281.1)
XYZxyz(8.6083, 4.4224, 34.1113)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391FA1 #87A11F
analogous
#1F46A1 #391FA1 #7A1FA1
triadic
#391FA1 #A1391F #1FA139
tetradic
#391FA1 #A11F46 #87A11F #1FA17A
square
#391FA1 #A11F46 #87A11F #1FA17A
split-complementary
#391FA1 #A17A1F #46A11F
monochromatic
#150B3A #27156E #391FA1 #4B29D4 #755BDF

Accessibility & contrast

On white

11.14
#391FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#391FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391FA1
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391FA1#FFFFFF#000000##FFFFFF
##391FA11.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00379F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #391fa1;
/* rgb */ color: rgb(57, 31, 161);
/* oklch */ color: oklch(37.5% 0.191 281.1);
Tailwind
colors: {
  custom: {
    50: '#7e5fbe',
    500: '#391fa1',
    950: '#000000',
  },
}
SCSS
$custom: #391fa1;
$custom-light: #7e5fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#391fa1",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 252,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37509,
    "c": 0.19145,
    "h": 281.1
  },
  "luminance": 0.04423
}

Semantic roles & 50–950 ramp

primary
#391FA1
secondary
#AEC458
accent
#EB3DC8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #391FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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