#391A9A#391A9A

#391A9A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.188 H 282.9°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#391A9A
RGBrgb(57, 26, 154)
HSLhsl(255, 71%, 35%)
HSVhsv(255, 83%, 60%)
CMYKcmyk(63%, 83.1%, 0%, 39.6%)
CIE-LABlab(23.48, 47.94, -63.38)
CIE-LCHlch(23.48, 79.47, 307.10°)
OKLaboklab(36.21% 0.0417 -0.1828)
OKLCHoklch(36.21% 0.188 282.9)
XYZxyz(7.8877, 3.9412, 30.9107)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391A9A #7B9A1A
analogous
#1A3B9A #391A9A #791A9A
triadic
#391A9A #9A391A #1A9A39
tetradic
#391A9A #9A1A3B #7B9A1A #1A9A79
square
#391A9A #9A1A3B #7B9A1A #1A9A79
split-complementary
#391A9A #9A791A #3B9A1A
monochromatic
#120831 #261166 #391A9A #4C23CE #714DE1

Accessibility & contrast

On white

11.74
#391A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#391A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391A9A
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391A9A#FFFFFF#000000##FFFFFF
##391A9A1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9D
Deuteranopia (green-blind)
#003498
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #391a9a;
/* rgb */ color: rgb(57, 26, 154);
/* oklch */ color: oklch(36.2% 0.188 282.9);
Tailwind
colors: {
  custom: {
    50: '#7d5cb9',
    500: '#391a9a',
    950: '#000000',
  },
}
SCSS
$custom: #391a9a;
$custom-light: #7d5cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#391a9a",
  "rgb": {
    "r": 57,
    "g": 26,
    "b": 154
  },
  "hsl": {
    "h": 254.531,
    "s": 71.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36213,
    "c": 0.1875,
    "h": 282.9
  },
  "luminance": 0.03942
}

Semantic roles & 50–950 ramp

primary
#391A9A
secondary
#A6C34D
accent
#EE3AC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #391A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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