#391B94#391B94

#391B94 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.180 H 283.9°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#391B94
RGBrgb(57, 27, 148)
HSLhsl(255, 69%, 34%)
HSVhsv(255, 82%, 58%)
CMYKcmyk(61.5%, 81.8%, 0%, 42%)
CIE-LABlab(22.97, 45.75, -60.53)
CIE-LCHlch(22.97, 75.87, 307.09°)
OKLaboklab(35.67% 0.0432 -0.1745)
OKLCHoklch(35.67% 0.18 283.9)
XYZxyz(7.4229, 3.7913, 28.3519)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B94 #76941B
analogous
#1B3A94 #391B94 #761B94
triadic
#391B94 #94391B #1B9439
tetradic
#391B94 #941B3A #76941B #1B9476
square
#391B94 #941B3A #76941B #1B9476
split-complementary
#391B94 #94761B #3A941B
monochromatic
#11082C #251260 #391B94 #4D24C8 #704BDE

Accessibility & contrast

On white

11.94
#391B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391B94
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B94#FFFFFF#000000##FFFFFF
##391B941.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003392
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #391b94;
/* rgb */ color: rgb(57, 27, 148);
/* oklch */ color: oklch(35.7% 0.180 283.9);
Tailwind
colors: {
  custom: {
    50: '#7c5cb5',
    500: '#391b94',
    950: '#000000',
  },
}
SCSS
$custom: #391b94;
$custom-light: #7c5cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#391b94",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 254.876,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35668,
    "c": 0.17975,
    "h": 283.9
  },
  "luminance": 0.03792
}

Semantic roles & 50–950 ramp

primary
#391B94
secondary
#A3C04B
accent
#EC3CC0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #391B94

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

Preview Lab → · Contrast checker → · Palette generator →

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