#391FA0#391FA0

#391FA0 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.190 H 281.2°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#391FA0
RGBrgb(57, 31, 160)
HSLhsl(252, 68%, 37%)
HSVhsv(252, 81%, 63%)
CMYKcmyk(64.4%, 80.6%, 0%, 37.3%)
CIE-LABlab(24.91, 47.43, -64.68)
CIE-LCHlch(24.91, 80.21, 306.25°)
OKLaboklab(37.4% 0.0371 -0.1866)
OKLCHoklch(37.4% 0.19 281.2)
XYZxyz(8.5205, 4.3872, 33.6487)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391FA0 #86A01F
analogous
#1F46A0 #391FA0 #791FA0
triadic
#391FA0 #A0391F #1FA039
tetradic
#391FA0 #A01F46 #86A01F #1FA079
square
#391FA0 #A01F46 #86A01F #1FA079
split-complementary
#391FA0 #A0791F #46A01F
monochromatic
#140B39 #27156D #391FA0 #4B29D3 #755ADF

Accessibility & contrast

On white

11.18
#391FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391FA0
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391FA0#FFFFFF#000000##FFFFFF
##391FA01.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA4
Deuteranopia (green-blind)
#00369E
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #391fa0;
/* rgb */ color: rgb(57, 31, 160);
/* oklch */ color: oklch(37.4% 0.190 281.2);
Tailwind
colors: {
  custom: {
    50: '#7e5fbd',
    500: '#391fa0',
    950: '#000000',
  },
}
SCSS
$custom: #391fa0;
$custom-light: #7e5fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#391fa0",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 252.093,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37401,
    "c": 0.19029,
    "h": 281.2
  },
  "luminance": 0.04388
}

Semantic roles & 50–950 ramp

primary
#391FA0
secondary
#ADC358
accent
#EA3DC8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #391FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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