#391A8A#391A8A

#391A8A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.169 H 286.2°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#391A8A
RGBrgb(57, 26, 138)
HSLhsl(257, 68%, 32%)
HSVhsv(257, 81%, 54%)
CMYKcmyk(58.7%, 81.2%, 0%, 45.9%)
CIE-LABlab(21.74, 43.29, -56.34)
CIE-LCHlch(21.74, 71.05, 307.54°)
OKLaboklab(34.49% 0.0471 -0.1623)
OKLCHoklch(34.49% 0.169 286.2)
XYZxyz(6.6428, 3.4432, 24.3544)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391A8A #6B8A1A
analogous
#1A338A #391A8A #711A8A
triadic
#391A8A #8A391A #1A8A39
tetradic
#391A8A #8A1A33 #6B8A1A #1A8A71
square
#391A8A #8A1A33 #6B8A1A #1A8A71
split-complementary
#391A8A #8A711A #338A1A
monochromatic
#0E0723 #241057 #391A8A #4E24BD #6D43DC

Accessibility & contrast

On white

12.43
#391A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#391A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391A8A
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391A8A#FFFFFF#000000##FFFFFF
##391A8A1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#103B52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #391a8a;
/* rgb */ color: rgb(57, 26, 138);
/* oklch */ color: oklch(34.5% 0.169 286.2);
Tailwind
colors: {
  custom: {
    50: '#7a5bad',
    500: '#391a8a',
    950: '#000000',
  },
}
SCSS
$custom: #391a8a;
$custom-light: #7a5bad;
$custom-dark: #000000;
JSON
{
  "hex": "#391a8a",
  "rgb": {
    "r": 57,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 256.607,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34494,
    "c": 0.16896,
    "h": 286.2
  },
  "luminance": 0.03444
}

Semantic roles & 50–950 ramp

primary
#391A8A
secondary
#9BBD43
accent
#EB3DBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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