#391EA7#391EA7

#391EA7 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.199 H 280.2°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#391EA7
RGBrgb(57, 30, 167)
HSLhsl(252, 70%, 39%)
HSVhsv(252, 82%, 65%)
CMYKcmyk(65.9%, 82%, 0%, 34.5%)
CIE-LABlab(25.53, 49.95, -67.91)
CIE-LCHlch(25.53, 84.30, 306.33°)
OKLaboklab(38.05% 0.0354 -0.196)
OKLCHoklch(38.05% 0.199 280.2)
XYZxyz(9.1245, 4.5877, 36.9564)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391EA7 #8CA71E
analogous
#1E47A7 #391EA7 #7D1EA7
triadic
#391EA7 #A7391E #1EA739
tetradic
#391EA7 #A71E47 #8CA71E #1EA77D
square
#391EA7 #A71E47 #8CA71E #1EA77D
split-complementary
#391EA7 #A77D1E #47A71E
monochromatic
#160B3F #271573 #391EA7 #4C2AD9 #785DE2

Accessibility & contrast

On white

10.95
#391EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#391EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391EA7
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391EA7#FFFFFF#000000##FFFFFF
##391EA71.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AB
Deuteranopia (green-blind)
#0037A5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #391ea7;
/* rgb */ color: rgb(57, 30, 167);
/* oklch */ color: oklch(38.1% 0.199 280.2);
Tailwind
colors: {
  custom: {
    50: '#7f5fc2',
    500: '#391ea7',
    950: '#000000',
  },
}
SCSS
$custom: #391ea7;
$custom-light: #7f5fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#391ea7",
  "rgb": {
    "r": 57,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 251.825,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38054,
    "c": 0.19921,
    "h": 280.2
  },
  "luminance": 0.04588
}

Semantic roles & 50–950 ramp

primary
#391EA7
secondary
#B1C65B
accent
#EC3BC9
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #391EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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