#391AA4#391AA4

#391AA4 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.199 H 281.1°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#391AA4
RGBrgb(57, 26, 164)
HSLhsl(253, 73%, 37%)
HSVhsv(253, 84%, 64%)
CMYKcmyk(65.2%, 84.1%, 0%, 35.7%)
CIE-LABlab(24.60, 50.80, -67.62)
CIE-LCHlch(24.60, 84.58, 306.92°)
OKLaboklab(37.32% 0.0383 -0.1951)
OKLCHoklch(37.32% 0.199 281.1)
XYZxyz(8.7555, 4.2883, 35.4811)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391AA4 #85A41A
analogous
#1A40A4 #391AA4 #7E1AA4
triadic
#391AA4 #A4391A #1AA439
tetradic
#391AA4 #A41A40 #85A41A #1AA47E
square
#391AA4 #A41A40 #85A41A #1AA47E
split-complementary
#391AA4 #A47E1A #40A41A
monochromatic
#14093A #27126F #391AA4 #4B22D9 #7554E4

Accessibility & contrast

On white

11.30
#391AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#391AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391AA4
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391AA4#FFFFFF#000000##FFFFFF
##391AA41.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA8
Deuteranopia (green-blind)
#0035A2
Tritanopia (blue-blind)
#004661
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #391aa4;
/* rgb */ color: rgb(57, 26, 164);
/* oklch */ color: oklch(37.3% 0.199 281.1);
Tailwind
colors: {
  custom: {
    50: '#7f5dc0',
    500: '#391aa4',
    950: '#000000',
  },
}
SCSS
$custom: #391aa4;
$custom-light: #7f5dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#391aa4",
  "rgb": {
    "r": 57,
    "g": 26,
    "b": 164
  },
  "hsl": {
    "h": 253.478,
    "s": 72.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37318,
    "c": 0.19885,
    "h": 281.1
  },
  "luminance": 0.04289
}

Semantic roles & 50–950 ramp

primary
#391AA4
secondary
#ADC753
accent
#EF38C6
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #391AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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