#391D8A#391D8A

#391D8A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.166 H 285.7°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#391D8A
RGBrgb(57, 29, 138)
HSLhsl(255, 65%, 33%)
HSVhsv(255, 79%, 54%)
CMYKcmyk(58.7%, 79%, 0%, 45.9%)
CIE-LABlab(22.24, 41.84, -55.51)
CIE-LCHlch(22.24, 69.51, 307.01°)
OKLaboklab(34.85% 0.045 -0.1599)
OKLCHoklch(34.85% 0.166 285.7)
XYZxyz(6.7128, 3.5832, 24.3777)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391D8A #6E8A1D
analogous
#1D378A #391D8A #6F1D8A
triadic
#391D8A #8A391D #1D8A39
tetradic
#391D8A #8A1D37 #6E8A1D #1D8A6F
square
#391D8A #8A1D37 #6E8A1D #1D8A6F
split-complementary
#391D8A #8A6F1D #378A1D
monochromatic
#0F0825 #241257 #391D8A #4E28BD #6E49D9

Accessibility & contrast

On white

12.23
#391D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#391D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391D8A
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391D8A#FFFFFF#000000##FFFFFF
##391D8A1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#103C53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #391d8a;
/* rgb */ color: rgb(57, 29, 138);
/* oklch */ color: oklch(34.8% 0.166 285.7);
Tailwind
colors: {
  custom: {
    50: '#7a5dad',
    500: '#391d8a',
    950: '#000000',
  },
}
SCSS
$custom: #391d8a;
$custom-light: #7a5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#391d8a",
  "rgb": {
    "r": 57,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 255.413,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34846,
    "c": 0.16608,
    "h": 285.7
  },
  "luminance": 0.03584
}

Semantic roles & 50–950 ramp

primary
#391D8A
secondary
#9DBB48
accent
#E840BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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