#391B9F#391B9F

#391B9F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.192 H 281.8°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#391B9F
RGBrgb(57, 27, 159)
HSLhsl(254, 71%, 36%)
HSVhsv(254, 83%, 62%)
CMYKcmyk(64.2%, 83%, 0%, 37.6%)
CIE-LABlab(24.18, 48.95, -65.28)
CIE-LCHlch(24.18, 81.59, 306.86°)
OKLaboklab(36.86% 0.0395 -0.1883)
OKLCHoklch(36.86% 0.192 281.8)
XYZxyz(8.3353, 4.1563, 33.1572)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B9F #819F1B
analogous
#1B3F9F #391B9F #7B1B9F
triadic
#391B9F #9F391B #1B9F39
tetradic
#391B9F #9F1B3F #819F1B #1B9F7B
square
#391B9F #9F1B3F #819F1B #1B9F7B
split-complementary
#391B9F #9F7B1B #3F9F1B
monochromatic
#130936 #26126B #391B9F #4C24D3 #7353E2

Accessibility & contrast

On white

11.47
#391B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#391B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B9F
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B9F#FFFFFF#000000##FFFFFF
##391B9F1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #391b9f;
/* rgb */ color: rgb(57, 27, 159);
/* oklch */ color: oklch(36.9% 0.192 281.8);
Tailwind
colors: {
  custom: {
    50: '#7e5dbd',
    500: '#391b9f',
    950: '#000000',
  },
}
SCSS
$custom: #391b9f;
$custom-light: #7e5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#391b9f",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 253.636,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36863,
    "c": 0.19243,
    "h": 281.8
  },
  "luminance": 0.04157
}

Semantic roles & 50–950 ramp

primary
#391B9F
secondary
#AAC551
accent
#EE3AC5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #391B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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