#391A7D#391A7D

#391A7D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.154 H 289.5°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#391A7D
RGBrgb(57, 26, 125)
HSLhsl(259, 66%, 30%)
HSVhsv(259, 79%, 49%)
CMYKcmyk(54.4%, 79.2%, 0%, 51%)
CIE-LABlab(20.40, 39.48, -50.35)
CIE-LCHlch(20.40, 63.98, 308.10°)
OKLaboklab(33.16% 0.0512 -0.1447)
OKLCHoklch(33.16% 0.154 289.5)
XYZxyz(5.7573, 3.0891, 19.6909)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391A7D #5E7D1A
analogous
#1A2C7D #391A7D #6B1A7D
triadic
#391A7D #7D391A #1A7D39
tetradic
#391A7D #7D1A2C #5E7D1A #1A7D6B
square
#391A7D #7D1A2C #5E7D1A #1A7D6B
split-complementary
#391A7D #7D6B1A #2C7D1A
monochromatic
#0C0519 #220F4A #391A7D #5025B0 #6C3BD6

Accessibility & contrast

On white

12.98
#391A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#391A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391A7D
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391A7D#FFFFFF#000000##FFFFFF
##391A7D1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#1F364B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #391a7d;
/* rgb */ color: rgb(57, 26, 125);
/* oklch */ color: oklch(33.2% 0.154 289.5);
Tailwind
colors: {
  custom: {
    50: '#785aa4',
    500: '#391a7d',
    950: '#000000',
  },
}
SCSS
$custom: #391a7d;
$custom-light: #785aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#391a7d",
  "rgb": {
    "r": 57,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 258.788,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33155,
    "c": 0.15353,
    "h": 289.5
  },
  "luminance": 0.03089
}

Semantic roles & 50–950 ramp

primary
#391A7D
secondary
#8EB142
accent
#E93FB4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #391A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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