#391A85#391A85

#391A85 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.163 H 287.4°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#391A85
RGBrgb(57, 26, 133)
HSLhsl(257, 67%, 31%)
HSVhsv(257, 80%, 52%)
CMYKcmyk(57.1%, 80.5%, 0%, 47.8%)
CIE-LABlab(21.21, 41.83, -54.06)
CIE-LCHlch(21.21, 68.36, 307.73°)
OKLaboklab(33.97% 0.0487 -0.1556)
OKLCHoklch(33.97% 0.163 287.4)
XYZxyz(6.2891, 3.3018, 22.4917)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391A85 #66851A
analogous
#1A3085 #391A85 #6E1A85
triadic
#391A85 #85391A #1A8539
tetradic
#391A85 #851A30 #66851A #1A856E
square
#391A85 #851A30 #66851A #1A856E
split-complementary
#391A85 #856E1A #30851A
monochromatic
#0D061F #231052 #391A85 #4F24B8 #6C40DA

Accessibility & contrast

On white

12.65
#391A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#391A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391A85
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391A85#FFFFFF#000000##FFFFFF
##391A851.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#17394F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #391a85;
/* rgb */ color: rgb(57, 26, 133);
/* oklch */ color: oklch(34.0% 0.163 287.4);
Tailwind
colors: {
  custom: {
    50: '#795baa',
    500: '#391a85',
    950: '#000000',
  },
}
SCSS
$custom: #391a85;
$custom-light: #795baa;
$custom-dark: #000000;
JSON
{
  "hex": "#391a85",
  "rgb": {
    "r": 57,
    "g": 26,
    "b": 133
  },
  "hsl": {
    "h": 257.383,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33972,
    "c": 0.16307,
    "h": 287.4
  },
  "luminance": 0.03302
}

Semantic roles & 50–950 ramp

primary
#391A85
secondary
#96B842
accent
#EA3EB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391A85

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

Preview Lab → · Contrast checker → · Palette generator →

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