#391A7E#391A7E

#391A7E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.155 H 289.2°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#391A7E
RGBrgb(57, 26, 126)
HSLhsl(259, 66%, 30%)
HSVhsv(259, 79%, 49%)
CMYKcmyk(54.8%, 79.4%, 0%, 50.6%)
CIE-LABlab(20.50, 39.77, -50.82)
CIE-LCHlch(20.50, 64.53, 308.05°)
OKLaboklab(33.26% 0.0509 -0.1461)
OKLCHoklch(33.26% 0.155 289.2)
XYZxyz(5.8215, 3.1147, 20.0291)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391A7E #5F7E1A
analogous
#1A2D7E #391A7E #6B1A7E
triadic
#391A7E #7E391A #1A7E39
tetradic
#391A7E #7E1A2D #5F7E1A #1A7E6B
square
#391A7E #7E1A2D #5F7E1A #1A7E6B
split-complementary
#391A7E #7E6B1A #2D7E1A
monochromatic
#0B0519 #22104B #391A7E #5024B1 #6C3CD7

Accessibility & contrast

On white

12.94
#391A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#391A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391A7E
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391A7E#FFFFFF#000000##FFFFFF
##391A7E1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#1E364B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #391a7e;
/* rgb */ color: rgb(57, 26, 126);
/* oklch */ color: oklch(33.3% 0.155 289.2);
Tailwind
colors: {
  custom: {
    50: '#785ba4',
    500: '#391a7e',
    950: '#000000',
  },
}
SCSS
$custom: #391a7e;
$custom-light: #785ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#391a7e",
  "rgb": {
    "r": 57,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 258.6,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33256,
    "c": 0.15473,
    "h": 289.2
  },
  "luminance": 0.03115
}

Semantic roles & 50–950 ramp

primary
#391A7E
secondary
#8FB242
accent
#E93FB4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #391A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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