#391B95#391B95

#391B95 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.181 H 283.7°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#391B95
RGBrgb(57, 27, 149)
HSLhsl(255, 69%, 35%)
HSVhsv(255, 82%, 58%)
CMYKcmyk(61.7%, 81.9%, 0%, 41.6%)
CIE-LABlab(23.08, 46.04, -60.96)
CIE-LCHlch(23.08, 76.40, 307.06°)
OKLaboklab(35.78% 0.0429 -0.1758)
OKLCHoklch(35.78% 0.181 283.7)
XYZxyz(7.5024, 3.8231, 28.7705)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B95 #77951B
analogous
#1B3A95 #391B95 #761B95
triadic
#391B95 #95391B #1B9539
tetradic
#391B95 #951B3A #77951B #1B9576
square
#391B95 #951B3A #77951B #1B9576
split-complementary
#391B95 #95761B #3A951B
monochromatic
#11082D #251261 #391B95 #4D24C9 #704CDF

Accessibility & contrast

On white

11.90
#391B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#391B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B95
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B95#FFFFFF#000000##FFFFFF
##391B951.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #391b95;
/* rgb */ color: rgb(57, 27, 149);
/* oklch */ color: oklch(35.8% 0.181 283.7);
Tailwind
colors: {
  custom: {
    50: '#7c5db5',
    500: '#391b95',
    950: '#000000',
  },
}
SCSS
$custom: #391b95;
$custom-light: #7c5db5;
$custom-dark: #000000;
JSON
{
  "hex": "#391b95",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 254.754,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35775,
    "c": 0.18092,
    "h": 283.7
  },
  "luminance": 0.03824
}

Semantic roles & 50–950 ramp

primary
#391B95
secondary
#A4C14B
accent
#EC3CC1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #391B95

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

Preview Lab → · Contrast checker → · Palette generator →

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