#391EA2#391EA2

#391EA2 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.193 H 281.0°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#391EA2
RGBrgb(57, 30, 162)
HSLhsl(252, 69%, 38%)
HSVhsv(252, 81%, 64%)
CMYKcmyk(64.8%, 81.5%, 0%, 36.5%)
CIE-LABlab(24.97, 48.48, -65.80)
CIE-LCHlch(24.97, 81.73, 306.38°)
OKLaboklab(37.51% 0.037 -0.1899)
OKLCHoklch(37.51% 0.193 281)
XYZxyz(8.6711, 4.4064, 34.5690)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391EA2 #87A21E
analogous
#1E45A2 #391EA2 #7B1EA2
triadic
#391EA2 #A2391E #1EA239
tetradic
#391EA2 #A21E45 #87A21E #1EA27B
square
#391EA2 #A21E45 #87A21E #1EA27B
split-complementary
#391EA2 #A27B1E #45A21E
monochromatic
#150B3B #27146E #391EA2 #4B28D6 #755AE0

Accessibility & contrast

On white

11.16
#391EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#391EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391EA2
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391EA2#FFFFFF#000000##FFFFFF
##391EA21.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A6
Deuteranopia (green-blind)
#0036A0
Tritanopia (blue-blind)
#004761
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #391ea2;
/* rgb */ color: rgb(57, 30, 162);
/* oklch */ color: oklch(37.5% 0.193 281.0);
Tailwind
colors: {
  custom: {
    50: '#7e5fbf',
    500: '#391ea2',
    950: '#000000',
  },
}
SCSS
$custom: #391ea2;
$custom-light: #7e5fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#391ea2",
  "rgb": {
    "r": 57,
    "g": 30,
    "b": 162
  },
  "hsl": {
    "h": 252.273,
    "s": 68.75,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37507,
    "c": 0.19346,
    "h": 281
  },
  "luminance": 0.04407
}

Semantic roles & 50–950 ramp

primary
#391EA2
secondary
#AEC457
accent
#EC3CC8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #391EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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