#391B96#391B96

#391B96 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.182 H 283.5°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#391B96
RGBrgb(57, 27, 150)
HSLhsl(255, 69%, 35%)
HSVhsv(255, 82%, 59%)
CMYKcmyk(62%, 82%, 0%, 41.2%)
CIE-LABlab(23.19, 46.33, -61.40)
CIE-LCHlch(23.19, 76.92, 307.04°)
OKLaboklab(35.88% 0.0425 -0.177)
OKLCHoklch(35.88% 0.182 283.5)
XYZxyz(7.5826, 3.8552, 29.1928)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B96 #78961B
analogous
#1B3B96 #391B96 #771B96
triadic
#391B96 #96391B #1B9639
tetradic
#391B96 #961B3B #78961B #1B9677
square
#391B96 #961B3B #78961B #1B9677
split-complementary
#391B96 #96771B #3B961B
monochromatic
#12082E #251262 #391B96 #4D24CA #704DDF

Accessibility & contrast

On white

11.86
#391B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#391B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B96
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B96#FFFFFF#000000##FFFFFF
##391B961.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #391b96;
/* rgb */ color: rgb(57, 27, 150);
/* oklch */ color: oklch(35.9% 0.182 283.5);
Tailwind
colors: {
  custom: {
    50: '#7c5db6',
    500: '#391b96',
    950: '#000000',
  },
}
SCSS
$custom: #391b96;
$custom-light: #7c5db6;
$custom-dark: #000000;
JSON
{
  "hex": "#391b96",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 254.634,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35883,
    "c": 0.18207,
    "h": 283.5
  },
  "luminance": 0.03856
}

Semantic roles & 50–950 ramp

primary
#391B96
secondary
#A4C14C
accent
#EC3BC1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #391B96

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

Preview Lab → · Contrast checker → · Palette generator →

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