#391C88#391C88

#391C88 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.165 H 286.4°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#391C88
RGBrgb(57, 28, 136)
HSLhsl(256, 66%, 32%)
HSVhsv(256, 79%, 53%)
CMYKcmyk(58.1%, 79.4%, 0%, 46.7%)
CIE-LABlab(21.86, 41.74, -54.88)
CIE-LCHlch(21.86, 68.95, 307.25°)
OKLaboklab(34.52% 0.0464 -0.158)
OKLCHoklch(34.52% 0.165 286.4)
XYZxyz(6.5452, 3.4776, 23.6141)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391C88 #6B881C
analogous
#1C3588 #391C88 #6F1C88
triadic
#391C88 #88391C #1C8839
tetradic
#391C88 #881C35 #6B881C #1C886F
square
#391C88 #881C35 #6B881C #1C886F
split-complementary
#391C88 #886F1C #35881C
monochromatic
#0E0722 #241255 #391C88 #4E26BB #6D46D9

Accessibility & contrast

On white

12.38
#391C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#391C88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391C88
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391C88#FFFFFF#000000##FFFFFF
##391C881.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.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: #391c88;
/* rgb */ color: rgb(57, 28, 136);
/* oklch */ color: oklch(34.5% 0.165 286.4);
Tailwind
colors: {
  custom: {
    50: '#795cac',
    500: '#391c88',
    950: '#000000',
  },
}
SCSS
$custom: #391c88;
$custom-light: #795cac;
$custom-dark: #000000;
JSON
{
  "hex": "#391c88",
  "rgb": {
    "r": 57,
    "g": 28,
    "b": 136
  },
  "hsl": {
    "h": 256.111,
    "s": 65.854,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34519,
    "c": 0.16468,
    "h": 286.4
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#391C88
secondary
#9BBA45
accent
#E93FBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391C88

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

Preview Lab → · Contrast checker → · Palette generator →

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