#391D7E#391D7E

#391D7E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.151 H 288.6°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#391D7E
RGBrgb(57, 29, 126)
HSLhsl(257, 63%, 30%)
HSVhsv(257, 77%, 49%)
CMYKcmyk(54.8%, 77%, 0%, 50.6%)
CIE-LABlab(21.04, 38.24, -49.93)
CIE-LCHlch(21.04, 62.89, 307.45°)
OKLaboklab(33.63% 0.0484 -0.1435)
OKLCHoklch(33.63% 0.152 288.6)
XYZxyz(5.8915, 3.2547, 20.0524)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391D7E #627E1D
analogous
#1D317E #391D7E #6A1D7E
triadic
#391D7E #7E391D #1D7E39
tetradic
#391D7E #7E1D31 #627E1D #1D7E6A
square
#391D7E #7E1D31 #627E1D #1D7E6A
split-complementary
#391D7E #7E6A1D #317E1D
monochromatic
#0C061B #22124C #391D7E #5028B0 #6C42D3

Accessibility & contrast

On white

12.72
#391D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#391D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391D7E
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391D7E#FFFFFF#000000##FFFFFF
##391D7E1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#1E384C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #391d7e;
/* rgb */ color: rgb(57, 29, 126);
/* oklch */ color: oklch(33.6% 0.151 288.6);
Tailwind
colors: {
  custom: {
    50: '#785ca4',
    500: '#391d7e',
    950: '#000000',
  },
}
SCSS
$custom: #391d7e;
$custom-light: #785ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#391d7e",
  "rgb": {
    "r": 57,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 257.32,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33634,
    "c": 0.1515,
    "h": 288.6
  },
  "luminance": 0.03255
}

Semantic roles & 50–950 ramp

primary
#391D7E
secondary
#92B145
accent
#E642B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #391D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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