#391B88#391B88

#391B88 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.166 H 286.5°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#391B88
RGBrgb(57, 27, 136)
HSLhsl(257, 67%, 32%)
HSVhsv(257, 80%, 53%)
CMYKcmyk(58.1%, 80.1%, 0%, 46.7%)
CIE-LABlab(21.69, 42.23, -55.16)
CIE-LCHlch(21.69, 69.47, 307.44°)
OKLaboklab(34.4% 0.0471 -0.1588)
OKLCHoklch(34.4% 0.166 286.5)
XYZxyz(6.5219, 3.4309, 23.6064)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B88 #6A881B
analogous
#1B3388 #391B88 #701B88
triadic
#391B88 #88391B #1B8839
tetradic
#391B88 #881B33 #6A881B #1B8870
square
#391B88 #881B33 #6A881B #1B8870
split-complementary
#391B88 #88701B #33881B
monochromatic
#0E0722 #241155 #391B88 #4E25BB #6D44DA

Accessibility & contrast

On white

12.45
#391B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391B88
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B88#FFFFFF#000000##FFFFFF
##391B881.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#133B51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #391b88;
/* rgb */ color: rgb(57, 27, 136);
/* oklch */ color: oklch(34.4% 0.166 286.5);
Tailwind
colors: {
  custom: {
    50: '#7a5cac',
    500: '#391b88',
    950: '#000000',
  },
}
SCSS
$custom: #391b88;
$custom-light: #7a5cac;
$custom-dark: #000000;
JSON
{
  "hex": "#391b88",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 136
  },
  "hsl": {
    "h": 256.514,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.344,
    "c": 0.16566,
    "h": 286.5
  },
  "luminance": 0.03431
}

Semantic roles & 50–950 ramp

primary
#391B88
secondary
#9ABB44
accent
#EA3EBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391B88

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

Preview Lab → · Contrast checker → · Palette generator →

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