#391D8F#391D8F

#391D8F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.172 H 284.7°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#391D8F
RGBrgb(57, 29, 143)
HSLhsl(255, 66%, 34%)
HSVhsv(255, 80%, 56%)
CMYKcmyk(60.1%, 79.7%, 0%, 43.9%)
CIE-LABlab(22.76, 43.33, -57.77)
CIE-LCHlch(22.76, 72.21, 306.87°)
OKLaboklab(35.37% 0.0435 -0.1665)
OKLCHoklch(35.37% 0.172 284.7)
XYZxyz(7.0831, 3.7313, 26.3282)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391D8F #738F1D
analogous
#1D3A8F #391D8F #721D8F
triadic
#391D8F #8F391D #1D8F39
tetradic
#391D8F #8F1D3A #738F1D #1D8F72
square
#391D8F #8F1D3A #738F1D #1D8F72
split-complementary
#391D8F #8F721D #3A8F1D
monochromatic
#100829 #25135C #391D8F #4D27C2 #6F4CDB

Accessibility & contrast

On white

12.02
#391D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#391D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391D8F
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391D8F#FFFFFF#000000##FFFFFF
##391D8F1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#043E56
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #391d8f;
/* rgb */ color: rgb(57, 29, 143);
/* oklch */ color: oklch(35.4% 0.172 284.7);
Tailwind
colors: {
  custom: {
    50: '#7b5db1',
    500: '#391d8f',
    950: '#000000',
  },
}
SCSS
$custom: #391d8f;
$custom-light: #7b5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#391d8f",
  "rgb": {
    "r": 57,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 254.737,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35365,
    "c": 0.17206,
    "h": 284.7
  },
  "luminance": 0.03732
}

Semantic roles & 50–950 ramp

primary
#391D8F
secondary
#A1BD4B
accent
#E93FBF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #391D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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