#391CA6#391CA6

#391CA6 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.200 H 280.6°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#391CA6
RGBrgb(57, 28, 166)
HSLhsl(253, 71%, 38%)
HSVhsv(253, 83%, 65%)
CMYKcmyk(65.7%, 83.1%, 0%, 34.9%)
CIE-LABlab(25.12, 50.54, -67.99)
CIE-LCHlch(25.12, 84.71, 306.62°)
OKLaboklab(37.74% 0.0367 -0.1962)
OKLCHoklch(37.74% 0.2 280.6)
XYZxyz(8.9834, 4.4528, 36.4551)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391CA6 #89A61C
analogous
#1C44A6 #391CA6 #7E1CA6
triadic
#391CA6 #A6391C #1CA639
tetradic
#391CA6 #A61C44 #89A61C #1CA67E
square
#391CA6 #A61C44 #89A61C #1CA67E
split-complementary
#391CA6 #A67E1C #44A61C
monochromatic
#150A3D #271372 #391CA6 #4B25DA #7659E3

Accessibility & contrast

On white

11.11
#391CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#391CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391CA6
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391CA6#FFFFFF#000000##FFFFFF
##391CA61.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0036A4
Tritanopia (blue-blind)
#004763
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #391ca6;
/* rgb */ color: rgb(57, 28, 166);
/* oklch */ color: oklch(37.7% 0.200 280.6);
Tailwind
colors: {
  custom: {
    50: '#7f5ec2',
    500: '#391ca6',
    950: '#000000',
  },
}
SCSS
$custom: #391ca6;
$custom-light: #7f5ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#391ca6",
  "rgb": {
    "r": 57,
    "g": 28,
    "b": 166
  },
  "hsl": {
    "h": 252.609,
    "s": 71.134,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37737,
    "c": 0.19963,
    "h": 280.6
  },
  "luminance": 0.04454
}

Semantic roles & 50–950 ramp

primary
#391CA6
secondary
#AFC757
accent
#EE3AC8
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #391CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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