#391B9E#391B9E

#391B9E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.191 H 282.0°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#391B9E
RGBrgb(57, 27, 158)
HSLhsl(254, 71%, 36%)
HSVhsv(254, 83%, 62%)
CMYKcmyk(63.9%, 82.9%, 0%, 38%)
CIE-LABlab(24.07, 48.66, -64.85)
CIE-LCHlch(24.07, 81.08, 306.88°)
OKLaboklab(36.75% 0.0398 -0.1871)
OKLCHoklch(36.75% 0.191 282)
XYZxyz(8.2489, 4.1217, 32.7020)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B9E #809E1B
analogous
#1B3F9E #391B9E #7B1B9E
triadic
#391B9E #9E391B #1B9E39
tetradic
#391B9E #9E1B3F #809E1B #1B9E7B
square
#391B9E #9E1B3F #809E1B #1B9E7B
split-complementary
#391B9E #9E7B1B #3F9E1B
monochromatic
#130935 #26126A #391B9E #4C24D2 #7352E1

Accessibility & contrast

On white

11.51
#391B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#391B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B9E
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B9E#FFFFFF#000000##FFFFFF
##391B9E1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #391b9e;
/* rgb */ color: rgb(57, 27, 158);
/* oklch */ color: oklch(36.8% 0.191 282.0);
Tailwind
colors: {
  custom: {
    50: '#7e5dbc',
    500: '#391b9e',
    950: '#000000',
  },
}
SCSS
$custom: #391b9e;
$custom-light: #7e5dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#391b9e",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 253.74,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36753,
    "c": 0.19128,
    "h": 282
  },
  "luminance": 0.04122
}

Semantic roles & 50–950 ramp

primary
#391B9E
secondary
#AAC451
accent
#EE3AC5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #391B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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