#391D8D#391D8D

#391D8D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.170 H 285.1°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#391D8D
RGBrgb(57, 29, 141)
HSLhsl(255, 66%, 33%)
HSVhsv(255, 79%, 55%)
CMYKcmyk(59.6%, 79.4%, 0%, 44.7%)
CIE-LABlab(22.55, 42.73, -56.87)
CIE-LCHlch(22.55, 71.14, 306.92°)
OKLaboklab(35.16% 0.0441 -0.1638)
OKLCHoklch(35.16% 0.17 285.1)
XYZxyz(6.9330, 3.6712, 25.5374)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391D8D #718D1D
analogous
#1D398D #391D8D #711D8D
triadic
#391D8D #8D391D #1D8D39
tetradic
#391D8D #8D1D39 #718D1D #1D8D71
square
#391D8D #8D1D39 #718D1D #1D8D71
split-complementary
#391D8D #8D711D #398D1D
monochromatic
#100827 #24135A #391D8D #4E27C0 #6E4BDA

Accessibility & contrast

On white

12.11
#391D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391D8D
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391D8D#FFFFFF#000000##FFFFFF
##391D8D1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#093E54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #391d8d;
/* rgb */ color: rgb(57, 29, 141);
/* oklch */ color: oklch(35.2% 0.170 285.1);
Tailwind
colors: {
  custom: {
    50: '#7a5daf',
    500: '#391d8d',
    950: '#000000',
  },
}
SCSS
$custom: #391d8d;
$custom-light: #7a5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#391d8d",
  "rgb": {
    "r": 57,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 255,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35156,
    "c": 0.16968,
    "h": 285.1
  },
  "luminance": 0.03672
}

Semantic roles & 50–950 ramp

primary
#391D8D
secondary
#A0BC4A
accent
#E93FBE
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #391D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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