#391F89#391F89

#391F89 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.163 H 285.6°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#391F89
RGBrgb(57, 31, 137)
HSLhsl(255, 63%, 33%)
HSVhsv(255, 77%, 54%)
CMYKcmyk(58.4%, 77.4%, 0%, 46.3%)
CIE-LABlab(22.50, 40.51, -54.46)
CIE-LCHlch(22.50, 67.88, 306.65°)
OKLaboklab(34.99% 0.0438 -0.1568)
OKLCHoklch(34.99% 0.163 285.6)
XYZxyz(6.6913, 3.6556, 24.0151)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F89 #6F891F
analogous
#1F3A89 #391F89 #6E1F89
triadic
#391F89 #89391F #1F8939
tetradic
#391F89 #891F3A #6F891F #1F896E
square
#391F89 #891F3A #6F891F #1F896E
split-complementary
#391F89 #896E1F #3A891F
monochromatic
#0F0825 #241457 #391F89 #4E2ABB #6E4CD6

Accessibility & contrast

On white

12.13
#391F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#391F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F89
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F89#FFFFFF#000000##FFFFFF
##391F891.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003387
Tritanopia (blue-blind)
#113D53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #391f89;
/* rgb */ color: rgb(57, 31, 137);
/* oklch */ color: oklch(35.0% 0.163 285.6);
Tailwind
colors: {
  custom: {
    50: '#795eac',
    500: '#391f89',
    950: '#000000',
  },
}
SCSS
$custom: #391f89;
$custom-light: #795eac;
$custom-dark: #000000;
JSON
{
  "hex": "#391f89",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 254.717,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34994,
    "c": 0.16283,
    "h": 285.6
  },
  "luminance": 0.03656
}

Semantic roles & 50–950 ramp

primary
#391F89
secondary
#9EB94B
accent
#E642BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391F89

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

Preview Lab → · Contrast checker → · Palette generator →

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