#391A8B#391A8B

#391A8B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.170 H 286.0°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#391A8B
RGBrgb(57, 26, 139)
HSLhsl(256, 68%, 32%)
HSVhsv(256, 81%, 55%)
CMYKcmyk(59%, 81.3%, 0%, 45.5%)
CIE-LABlab(21.84, 43.58, -56.79)
CIE-LCHlch(21.84, 71.59, 307.50°)
OKLaboklab(34.6% 0.0468 -0.1636)
OKLCHoklch(34.6% 0.17 286)
XYZxyz(6.7155, 3.4723, 24.7375)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391A8B #6C8B1A
analogous
#1A348B #391A8B #711A8B
triadic
#391A8B #8B391A #1A8B39
tetradic
#391A8B #8B1A34 #6C8B1A #1A8B71
square
#391A8B #8B1A34 #6C8B1A #1A8B71
split-complementary
#391A8B #8B711A #348B1A
monochromatic
#0F0724 #241057 #391A8B #4E24BF #6D43DC

Accessibility & contrast

On white

12.39
#391A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391A8B
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391A8B#FFFFFF#000000##FFFFFF
##391A8B1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#0E3C53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #391a8b;
/* rgb */ color: rgb(57, 26, 139);
/* oklch */ color: oklch(34.6% 0.170 286.0);
Tailwind
colors: {
  custom: {
    50: '#7a5bae',
    500: '#391a8b',
    950: '#000000',
  },
}
SCSS
$custom: #391a8b;
$custom-light: #7a5bae;
$custom-dark: #000000;
JSON
{
  "hex": "#391a8b",
  "rgb": {
    "r": 57,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 256.46,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.346,
    "c": 0.17014,
    "h": 286
  },
  "luminance": 0.03473
}

Semantic roles & 50–950 ramp

primary
#391A8B
secondary
#9CBD44
accent
#EB3CBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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