#391F83#391F83

#391F83 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.155 H 287.0°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#391F83
RGBrgb(57, 31, 131)
HSLhsl(256, 62%, 32%)
HSVhsv(256, 76%, 51%)
CMYKcmyk(56.5%, 76.3%, 0%, 48.6%)
CIE-LABlab(21.90, 38.69, -51.67)
CIE-LCHlch(21.90, 64.55, 306.82°)
OKLaboklab(34.39% 0.0455 -0.1487)
OKLCHoklch(34.39% 0.155 287)
XYZxyz(6.2728, 3.4882, 21.8111)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F83 #69831F
analogous
#1F3783 #391F83 #6B1F83
triadic
#391F83 #83391F #1F8339
tetradic
#391F83 #831F37 #69831F #1F836B
square
#391F83 #831F37 #69831F #1F836B
split-complementary
#391F83 #836B1F #37831F
monochromatic
#0E0820 #231352 #391F83 #4F2BB4 #6D49D4

Accessibility & contrast

On white

12.37
#391F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#391F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F83
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F83#FFFFFF#000000##FFFFFF
##391F831.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#003281
Tritanopia (blue-blind)
#193B4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #391f83;
/* rgb */ color: rgb(57, 31, 131);
/* oklch */ color: oklch(34.4% 0.155 287.0);
Tailwind
colors: {
  custom: {
    50: '#785ea8',
    500: '#391f83',
    950: '#000000',
  },
}
SCSS
$custom: #391f83;
$custom-light: #785ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#391f83",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 255.6,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34393,
    "c": 0.15546,
    "h": 287
  },
  "luminance": 0.03489
}

Semantic roles & 50–950 ramp

primary
#391F83
secondary
#99B648
accent
#E543BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391F83

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

Preview Lab → · Contrast checker → · Palette generator →

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