#391D88#391D88

#391D88 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.164 H 286.2°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#391D88
RGBrgb(57, 29, 136)
HSLhsl(256, 65%, 32%)
HSVhsv(256, 79%, 53%)
CMYKcmyk(58.1%, 78.7%, 0%, 46.7%)
CIE-LABlab(22.04, 41.24, -54.59)
CIE-LCHlch(22.04, 68.42, 307.07°)
OKLaboklab(34.64% 0.0456 -0.1572)
OKLCHoklch(34.64% 0.164 286.2)
XYZxyz(6.5693, 3.5258, 23.6222)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391D88 #6C881D
analogous
#1D3788 #391D88 #6F1D88
triadic
#391D88 #88391D #1D8839
tetradic
#391D88 #881D37 #6C881D #1D886F
square
#391D88 #881D37 #6C881D #1D886F
split-complementary
#391D88 #886F1D #37881D
monochromatic
#0F0723 #241256 #391D88 #4E28BA #6D48D8

Accessibility & contrast

On white

12.32
#391D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#391D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391D88
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391D88#FFFFFF#000000##FFFFFF
##391D881.0012.321.7112.32
#FFFFFF12.321.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#133C52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #391d88;
/* rgb */ color: rgb(57, 29, 136);
/* oklch */ color: oklch(34.6% 0.164 286.2);
Tailwind
colors: {
  custom: {
    50: '#795dac',
    500: '#391d88',
    950: '#000000',
  },
}
SCSS
$custom: #391d88;
$custom-light: #795dac;
$custom-dark: #000000;
JSON
{
  "hex": "#391d88",
  "rgb": {
    "r": 57,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 255.701,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3464,
    "c": 0.16368,
    "h": 286.2
  },
  "luminance": 0.03526
}

Semantic roles & 50–950 ramp

primary
#391D88
secondary
#9CBA47
accent
#E840BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391D88

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

Preview Lab → · Contrast checker → · Palette generator →

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