#391FA4#391FA4

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

Color values

HEX#391FA4
RGBrgb(57, 31, 164)
HSLhsl(252, 68%, 38%)
HSVhsv(252, 81%, 64%)
CMYKcmyk(65.2%, 81.1%, 0%, 35.7%)
CIE-LABlab(25.35, 48.61, -66.39)
CIE-LCHlch(25.35, 82.28, 306.21°)
OKLaboklab(37.83% 0.0358 -0.1916)
OKLCHoklch(37.83% 0.195 280.6)
XYZxyz(8.8760, 4.5295, 35.5213)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391FA4 #8AA41F
analogous
#1F48A4 #391FA4 #7B1FA4
triadic
#391FA4 #A4391F #1FA439
tetradic
#391FA4 #A41F48 #8AA41F #1FA47B
square
#391FA4 #A41F48 #8AA41F #1FA47B
split-complementary
#391FA4 #A47B1F #48A41F
monochromatic
#150C3D #271571 #391FA4 #4B2AD7 #775DE0

Accessibility & contrast

On white

11.02
#391FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#391FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391FA4
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391FA4#FFFFFF#000000##FFFFFF
##391FA41.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A8
Deuteranopia (green-blind)
#0037A2
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #391fa4;
/* rgb */ color: rgb(57, 31, 164);
/* oklch */ color: oklch(37.8% 0.195 280.6);
Tailwind
colors: {
  custom: {
    50: '#7f60c0',
    500: '#391fa4',
    950: '#000000',
  },
}
SCSS
$custom: #391fa4;
$custom-light: #7f60c0;
$custom-dark: #000000;
JSON
{
  "hex": "#391fa4",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 164
  },
  "hsl": {
    "h": 251.729,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37834,
    "c": 0.19494,
    "h": 280.6
  },
  "luminance": 0.0453
}

Semantic roles & 50–950 ramp

primary
#391FA4
secondary
#B0C55A
accent
#EB3DC9
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #391FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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