#391FB4#391FB4

#391FB4 is a dark, highly saturated violet. Relative luminance 0.051; OKLCH L 39.6% C 0.213 H 278.3°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#391FB4
RGBrgb(57, 31, 180)
HSLhsl(250, 71%, 41%)
HSVhsv(250, 83%, 71%)
CMYKcmyk(68.3%, 82.8%, 0%, 29.4%)
CIE-LABlab(27.14, 53.29, -73.05)
CIE-LCHlch(27.14, 90.42, 306.11°)
OKLaboklab(39.6% 0.0308 -0.211)
OKLCHoklch(39.6% 0.213 278.3)
XYZxyz(10.4129, 5.1442, 43.6153)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391FB4 #9AB41F
analogous
#1F50B4 #391FB4 #841FB4
triadic
#391FB4 #B4391F #1FB439
tetradic
#391FB4 #B41F50 #9AB41F #1FB484
square
#391FB4 #B41F50 #9AB41F #1FB484
split-complementary
#391FB4 #B4841F #50B41F
monochromatic
#180D4C #281680 #391FB4 #5134DC #7E68E5

Accessibility & contrast

On white

10.35
#391FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#391FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391FB4
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391FB4#FFFFFF#000000##FFFFFF
##391FB41.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B8
Deuteranopia (green-blind)
#003AB1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #391fb4;
/* rgb */ color: rgb(57, 31, 180);
/* oklch */ color: oklch(39.6% 0.213 278.3);
Tailwind
colors: {
  custom: {
    50: '#8261cc',
    500: '#391fb4',
    950: '#000000',
  },
}
SCSS
$custom: #391fb4;
$custom-light: #8261cc;
$custom-dark: #000000;
JSON
{
  "hex": "#391fb4",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 250.47,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39597,
    "c": 0.21323,
    "h": 278.3
  },
  "luminance": 0.05145
}

Semantic roles & 50–950 ramp

primary
#391FB4
secondary
#B9CB64
accent
#ED3ACE
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #391FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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