#391A9D#391A9D

#391A9D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.191 H 282.3°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#391A9D
RGBrgb(57, 26, 157)
HSLhsl(254, 72%, 36%)
HSVhsv(254, 83%, 62%)
CMYKcmyk(63.7%, 83.4%, 0%, 38.4%)
CIE-LABlab(23.81, 48.80, -64.67)
CIE-LCHlch(23.81, 81.01, 307.04°)
OKLaboklab(36.54% 0.0407 -0.1865)
OKLCHoklch(36.54% 0.191 282.3)
XYZxyz(8.1406, 4.0424, 32.2430)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391A9D #7E9D1A
analogous
#1A3D9D #391A9D #7A1A9D
triadic
#391A9D #9D391A #1A9D39
tetradic
#391A9D #9D1A3D #7E9D1A #1A9D7A
square
#391A9D #9D1A3D #7E9D1A #1A9D7A
split-complementary
#391A9D #9D7A1A #3D9D1A
monochromatic
#130934 #261168 #391A9D #4C23D2 #724FE2

Accessibility & contrast

On white

11.61
#391A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#391A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391A9D
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391A9D#FFFFFF#000000##FFFFFF
##391A9D1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA1
Deuteranopia (green-blind)
#00349B
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #391a9d;
/* rgb */ color: rgb(57, 26, 157);
/* oklch */ color: oklch(36.5% 0.191 282.3);
Tailwind
colors: {
  custom: {
    50: '#7e5dbb',
    500: '#391a9d',
    950: '#000000',
  },
}
SCSS
$custom: #391a9d;
$custom-light: #7e5dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#391a9d",
  "rgb": {
    "r": 57,
    "g": 26,
    "b": 157
  },
  "hsl": {
    "h": 254.198,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36542,
    "c": 0.19092,
    "h": 282.3
  },
  "luminance": 0.04043
}

Semantic roles & 50–950 ramp

primary
#391A9D
secondary
#A8C44E
accent
#EE39C4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #391A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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