#391B98#391B98

#391B98 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.184 H 283.1°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#391B98
RGBrgb(57, 27, 152)
HSLhsl(254, 70%, 35%)
HSVhsv(254, 82%, 60%)
CMYKcmyk(62.5%, 82.2%, 0%, 40.4%)
CIE-LABlab(23.41, 46.92, -62.27)
CIE-LCHlch(23.41, 77.97, 307.00°)
OKLaboklab(36.1% 0.0419 -0.1796)
OKLCHoklch(36.1% 0.184 283.1)
XYZxyz(7.7450, 3.9202, 30.0482)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B98 #7A981B
analogous
#1B3C98 #391B98 #771B98
triadic
#391B98 #98391B #1B9839
tetradic
#391B98 #981B3C #7A981B #1B9877
square
#391B98 #981B3C #7A981B #1B9877
split-complementary
#391B98 #98771B #3C981B
monochromatic
#120930 #261264 #391B98 #4C24CC #714EE0

Accessibility & contrast

On white

11.77
#391B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#391B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B98
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B98#FFFFFF#000000##FFFFFF
##391B981.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #391b98;
/* rgb */ color: rgb(57, 27, 152);
/* oklch */ color: oklch(36.1% 0.184 283.1);
Tailwind
colors: {
  custom: {
    50: '#7d5db8',
    500: '#391b98',
    950: '#000000',
  },
}
SCSS
$custom: #391b98;
$custom-light: #7d5db8;
$custom-dark: #000000;
JSON
{
  "hex": "#391b98",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 254.4,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36099,
    "c": 0.18438,
    "h": 283.1
  },
  "luminance": 0.03921
}

Semantic roles & 50–950 ramp

primary
#391B98
secondary
#A6C24D
accent
#ED3BC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #391B98

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

Preview Lab → · Contrast checker → · Palette generator →

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