#391D8E#391D8E

#391D8E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.171 H 284.9°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#391D8E
RGBrgb(57, 29, 142)
HSLhsl(255, 66%, 34%)
HSVhsv(255, 80%, 56%)
CMYKcmyk(59.9%, 79.6%, 0%, 44.3%)
CIE-LABlab(22.66, 43.03, -57.32)
CIE-LCHlch(22.66, 71.67, 306.90°)
OKLaboklab(35.26% 0.0438 -0.1651)
OKLCHoklch(35.26% 0.171 284.9)
XYZxyz(7.0077, 3.7011, 25.9311)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391D8E #728E1D
analogous
#1D398E #391D8E #711D8E
triadic
#391D8E #8E391D #1D8E39
tetradic
#391D8E #8E1D39 #728E1D #1D8E71
square
#391D8E #8E1D39 #728E1D #1D8E71
split-complementary
#391D8E #8E711D #398E1D
monochromatic
#100828 #25135B #391D8E #4D27C1 #6F4BDA

Accessibility & contrast

On white

12.07
#391D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#391D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391D8E
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391D8E#FFFFFF#000000##FFFFFF
##391D8E1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#073E55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #391d8e;
/* rgb */ color: rgb(57, 29, 142);
/* oklch */ color: oklch(35.3% 0.171 284.9);
Tailwind
colors: {
  custom: {
    50: '#7a5db0',
    500: '#391d8e',
    950: '#000000',
  },
}
SCSS
$custom: #391d8e;
$custom-light: #7a5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#391d8e",
  "rgb": {
    "r": 57,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 254.867,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3526,
    "c": 0.17087,
    "h": 284.9
  },
  "luminance": 0.03702
}

Semantic roles & 50–950 ramp

primary
#391D8E
secondary
#A0BD4A
accent
#E93FBF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #391D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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