#391F90#391F90

#391F90 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.171 H 284.1°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#391F90
RGBrgb(57, 31, 144)
HSLhsl(254, 65%, 34%)
HSVhsv(254, 78%, 56%)
CMYKcmyk(60.4%, 78.5%, 0%, 43.5%)
CIE-LABlab(23.21, 42.63, -57.65)
CIE-LCHlch(23.21, 71.70, 306.49°)
OKLaboklab(35.71% 0.0419 -0.1661)
OKLCHoklch(35.71% 0.171 284.1)
XYZxyz(7.2098, 3.8630, 26.7459)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F90 #76901F
analogous
#1F3E90 #391F90 #721F90
triadic
#391F90 #90391F #1F9039
tetradic
#391F90 #901F3E #76901F #1F9072
square
#391F90 #901F3E #76901F #1F9072
split-complementary
#391F90 #90721F #3E901F
monochromatic
#11092B #25145E #391F90 #4D2AC2 #7050D9

Accessibility & contrast

On white

11.85
#391F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#391F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F90
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F90#FFFFFF#000000##FFFFFF
##391F901.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B93
Deuteranopia (green-blind)
#00348E
Tritanopia (blue-blind)
#024057
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #391f90;
/* rgb */ color: rgb(57, 31, 144);
/* oklch */ color: oklch(35.7% 0.171 284.1);
Tailwind
colors: {
  custom: {
    50: '#7b5eb2',
    500: '#391f90',
    950: '#000000',
  },
}
SCSS
$custom: #391f90;
$custom-light: #7b5eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#391f90",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 253.805,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35711,
    "c": 0.17133,
    "h": 284.1
  },
  "luminance": 0.03863
}

Semantic roles & 50–950 ramp

primary
#391F90
secondary
#A3BC4E
accent
#E840C1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #391F90

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

Preview Lab → · Contrast checker → · Palette generator →

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