#391A9B#391A9B

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

Color values

HEX#391A9B
RGBrgb(57, 26, 155)
HSLhsl(254, 71%, 35%)
HSVhsv(254, 83%, 61%)
CMYKcmyk(63.2%, 83.2%, 0%, 39.2%)
CIE-LABlab(23.59, 48.23, -63.81)
CIE-LCHlch(23.59, 79.99, 307.08°)
OKLaboklab(36.32% 0.0414 -0.184)
OKLCHoklch(36.32% 0.189 282.7)
XYZxyz(7.9713, 3.9746, 31.3511)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391A9B #7C9B1A
analogous
#1A3B9B #391A9B #7A1A9B
triadic
#391A9B #9B391A #1A9B39
tetradic
#391A9B #9B1A3B #7C9B1A #1A9B7A
square
#391A9B #9B1A3B #7C9B1A #1A9B7A
split-complementary
#391A9B #9B7A1A #3B9B1A
monochromatic
#120832 #261167 #391A9B #4C23CF #714EE1

Accessibility & contrast

On white

11.70
#391A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#391A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391A9B
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391A9B#FFFFFF#000000##FFFFFF
##391A9B1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9E
Deuteranopia (green-blind)
#003499
Tritanopia (blue-blind)
#00425C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #391a9b;
/* rgb */ color: rgb(57, 26, 155);
/* oklch */ color: oklch(36.3% 0.189 282.7);
Tailwind
colors: {
  custom: {
    50: '#7d5cba',
    500: '#391a9b',
    950: '#000000',
  },
}
SCSS
$custom: #391a9b;
$custom-light: #7d5cba;
$custom-dark: #000000;
JSON
{
  "hex": "#391a9b",
  "rgb": {
    "r": 57,
    "g": 26,
    "b": 155
  },
  "hsl": {
    "h": 254.419,
    "s": 71.271,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36322,
    "c": 0.18864,
    "h": 282.7
  },
  "luminance": 0.03975
}

Semantic roles & 50–950 ramp

primary
#391A9B
secondary
#A7C44D
accent
#EE3AC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #391A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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