#391D99#391D99

#391D99 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.184 H 282.7°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#391D99
RGBrgb(57, 29, 153)
HSLhsl(254, 68%, 36%)
HSVhsv(254, 81%, 60%)
CMYKcmyk(62.7%, 81%, 0%, 40%)
CIE-LABlab(23.83, 46.30, -62.19)
CIE-LCHlch(23.83, 77.53, 306.67°)
OKLaboklab(36.43% 0.0404 -0.1793)
OKLCHoklch(36.43% 0.184 282.7)
XYZxyz(7.8747, 4.0479, 30.4972)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391D99 #7D991D
analogous
#1D3F99 #391D99 #771D99
triadic
#391D99 #99391D #1D9939
tetradic
#391D99 #991D3F #7D991D #1D9977
square
#391D99 #991D3F #7D991D #1D9977
split-complementary
#391D99 #99771D #3F991D
monochromatic
#130932 #261366 #391D99 #4C27CC #7252DE

Accessibility & contrast

On white

11.60
#391D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#391D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391D99
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391D99#FFFFFF#000000##FFFFFF
##391D991.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003497
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #391d99;
/* rgb */ color: rgb(57, 29, 153);
/* oklch */ color: oklch(36.4% 0.184 282.7);
Tailwind
colors: {
  custom: {
    50: '#7d5eb8',
    500: '#391d99',
    950: '#000000',
  },
}
SCSS
$custom: #391d99;
$custom-light: #7d5eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#391d99",
  "rgb": {
    "r": 57,
    "g": 29,
    "b": 153
  },
  "hsl": {
    "h": 253.548,
    "s": 68.132,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36425,
    "c": 0.18384,
    "h": 282.7
  },
  "luminance": 0.04048
}

Semantic roles & 50–950 ramp

primary
#391D99
secondary
#A8C151
accent
#EB3DC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #391D99

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

Preview Lab → · Contrast checker → · Palette generator →

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