#391D8B#391D8B

#391D8B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.167 H 285.5°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#391D8B
RGBrgb(57, 29, 139)
HSLhsl(255, 65%, 33%)
HSVhsv(255, 79%, 55%)
CMYKcmyk(59%, 79.1%, 0%, 45.5%)
CIE-LABlab(22.35, 42.14, -55.96)
CIE-LCHlch(22.35, 70.05, 306.98°)
OKLaboklab(34.95% 0.0447 -0.1612)
OKLCHoklch(34.95% 0.167 285.5)
XYZxyz(6.7855, 3.6123, 24.7608)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391D8B #6F8B1D
analogous
#1D388B #391D8B #701D8B
triadic
#391D8B #8B391D #1D8B39
tetradic
#391D8B #8B1D38 #6F8B1D #1D8B70
square
#391D8B #8B1D38 #6F8B1D #1D8B70
split-complementary
#391D8B #8B701D #388B1D
monochromatic
#0F0826 #241258 #391D8B #4E28BE #6E49D9

Accessibility & contrast

On white

12.19
#391D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391D8B
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391D8B#FFFFFF#000000##FFFFFF
##391D8B1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#0E3D53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #391d8b;
/* rgb */ color: rgb(57, 29, 139);
/* oklch */ color: oklch(34.9% 0.167 285.5);
Tailwind
colors: {
  custom: {
    50: '#7a5dae',
    500: '#391d8b',
    950: '#000000',
  },
}
SCSS
$custom: #391d8b;
$custom-light: #7a5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#391d8b",
  "rgb": {
    "r": 57,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 255.273,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34949,
    "c": 0.16728,
    "h": 285.5
  },
  "luminance": 0.03613
}

Semantic roles & 50–950 ramp

primary
#391D8B
secondary
#9EBB49
accent
#E83FBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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