#391F84#391F84

#391F84 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.157 H 286.8°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#391F84
RGBrgb(57, 31, 132)
HSLhsl(255, 62%, 32%)
HSVhsv(255, 77%, 52%)
CMYKcmyk(56.8%, 76.5%, 0%, 48.2%)
CIE-LABlab(22.00, 38.99, -52.14)
CIE-LCHlch(22.00, 65.11, 306.79°)
OKLaboklab(34.49% 0.0452 -0.15)
OKLCHoklch(34.49% 0.157 286.8)
XYZxyz(6.3409, 3.5154, 22.1697)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F84 #6A841F
analogous
#1F3784 #391F84 #6C1F84
triadic
#391F84 #84391F #1F8439
tetradic
#391F84 #841F37 #6A841F #1F846C
square
#391F84 #841F37 #6A841F #1F846C
split-complementary
#391F84 #846C1F #37841F
monochromatic
#0E0821 #241352 #391F84 #4E2BB6 #6D49D4

Accessibility & contrast

On white

12.33
#391F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391F84
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F84#FFFFFF#000000##FFFFFF
##391F841.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#003282
Tritanopia (blue-blind)
#183B50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #391f84;
/* rgb */ color: rgb(57, 31, 132);
/* oklch */ color: oklch(34.5% 0.157 286.8);
Tailwind
colors: {
  custom: {
    50: '#785ea9',
    500: '#391f84',
    950: '#000000',
  },
}
SCSS
$custom: #391f84;
$custom-light: #785ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#391f84",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 255.446,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34492,
    "c": 0.1567,
    "h": 286.8
  },
  "luminance": 0.03516
}

Semantic roles & 50–950 ramp

primary
#391F84
secondary
#9AB748
accent
#E543BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391F84

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

Preview Lab → · Contrast checker → · Palette generator →

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