#391F91#391F91

#391F91 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.173 H 283.9°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#391F91
RGBrgb(57, 31, 145)
HSLhsl(254, 65%, 35%)
HSVhsv(254, 79%, 57%)
CMYKcmyk(60.7%, 78.6%, 0%, 43.1%)
CIE-LABlab(23.32, 42.94, -58.10)
CIE-LCHlch(23.32, 72.24, 306.47°)
OKLaboklab(35.81% 0.0416 -0.1674)
OKLCHoklch(35.81% 0.173 283.9)
XYZxyz(7.2866, 3.8937, 27.1502)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F91 #77911F
analogous
#1F3E91 #391F91 #721F91
triadic
#391F91 #91391F #1F9139
tetradic
#391F91 #911F3E #77911F #1F9172
square
#391F91 #911F3E #77911F #1F9172
split-complementary
#391F91 #91721F #3E911F
monochromatic
#11092C #25145F #391F91 #4D2AC3 #7051DA

Accessibility & contrast

On white

11.81
#391F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#391F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F91
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F91#FFFFFF#000000##FFFFFF
##391F911.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00348F
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #391f91;
/* rgb */ color: rgb(57, 31, 145);
/* oklch */ color: oklch(35.8% 0.173 283.9);
Tailwind
colors: {
  custom: {
    50: '#7b5eb2',
    500: '#391f91',
    950: '#000000',
  },
}
SCSS
$custom: #391f91;
$custom-light: #7b5eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#391f91",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 253.684,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35814,
    "c": 0.17253,
    "h": 283.9
  },
  "luminance": 0.03894
}

Semantic roles & 50–950 ramp

primary
#391F91
secondary
#A4BD4F
accent
#E840C2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #391F91

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

Preview Lab → · Contrast checker → · Palette generator →

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