#391A7F#391A7F

#391A7F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.156 H 288.9°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#391A7F
RGBrgb(57, 26, 127)
HSLhsl(258, 66%, 30%)
HSVhsv(258, 80%, 50%)
CMYKcmyk(55.1%, 79.5%, 0%, 50.2%)
CIE-LABlab(20.60, 40.07, -51.29)
CIE-LCHlch(20.60, 65.08, 308.00°)
OKLaboklab(33.36% 0.0506 -0.1475)
OKLCHoklch(33.36% 0.156 288.9)
XYZxyz(5.8864, 3.1407, 20.3706)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391A7F #607F1A
analogous
#1A2D7F #391A7F #6C1A7F
triadic
#391A7F #7F391A #1A7F39
tetradic
#391A7F #7F1A2D #607F1A #1A7F6C
square
#391A7F #7F1A2D #607F1A #1A7F6C
split-complementary
#391A7F #7F6C1A #2D7F1A
monochromatic
#0B0519 #22104C #391A7F #5024B2 #6C3CD7

Accessibility & contrast

On white

12.90
#391A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#391A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391A7F
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391A7F#FFFFFF#000000##FFFFFF
##391A7F1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#1E374C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #391a7f;
/* rgb */ color: rgb(57, 26, 127);
/* oklch */ color: oklch(33.4% 0.156 288.9);
Tailwind
colors: {
  custom: {
    50: '#785ba5',
    500: '#391a7f',
    950: '#000000',
  },
}
SCSS
$custom: #391a7f;
$custom-light: #785ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#391a7f",
  "rgb": {
    "r": 57,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 258.416,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.33357,
    "c": 0.15593,
    "h": 288.9
  },
  "luminance": 0.03141
}

Semantic roles & 50–950 ramp

primary
#391A7F
secondary
#90B342
accent
#E93FB5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #391A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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