#391A83#391A83

#391A83 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.161 H 287.9°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#391A83
RGBrgb(57, 26, 131)
HSLhsl(258, 67%, 31%)
HSVhsv(258, 80%, 51%)
CMYKcmyk(56.5%, 80.2%, 0%, 48.6%)
CIE-LABlab(21.01, 41.24, -53.15)
CIE-LCHlch(21.01, 67.27, 307.81°)
OKLaboklab(33.77% 0.0494 -0.1529)
OKLCHoklch(33.77% 0.161 287.9)
XYZxyz(6.1523, 3.2470, 21.7709)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391A83 #64831A
analogous
#1A3083 #391A83 #6D1A83
triadic
#391A83 #83391A #1A8339
tetradic
#391A83 #831A30 #64831A #1A836D
square
#391A83 #831A30 #64831A #1A836D
split-complementary
#391A83 #836D1A #30831A
monochromatic
#0D061D #231050 #391A83 #4F24B6 #6C3FD9

Accessibility & contrast

On white

12.73
#391A83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#391A83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391A83
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391A83#FFFFFF#000000##FFFFFF
##391A831.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#19384E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #391a83;
/* rgb */ color: rgb(57, 26, 131);
/* oklch */ color: oklch(33.8% 0.161 287.9);
Tailwind
colors: {
  custom: {
    50: '#795ba8',
    500: '#391a83',
    950: '#000000',
  },
}
SCSS
$custom: #391a83;
$custom-light: #795ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#391a83",
  "rgb": {
    "r": 57,
    "g": 26,
    "b": 131
  },
  "hsl": {
    "h": 257.714,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33766,
    "c": 0.1607,
    "h": 287.9
  },
  "luminance": 0.03247
}

Semantic roles & 50–950 ramp

primary
#391A83
secondary
#94B742
accent
#EA3EB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391A83

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

Preview Lab → · Contrast checker → · Palette generator →

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