#391C98#391C98

#391C98 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.184 H 283.0°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#391C98
RGBrgb(57, 28, 152)
HSLhsl(254, 69%, 35%)
HSVhsv(254, 82%, 60%)
CMYKcmyk(62.5%, 81.6%, 0%, 40.4%)
CIE-LABlab(23.56, 46.46, -62.01)
CIE-LCHlch(23.56, 77.49, 306.84°)
OKLaboklab(36.21% 0.0413 -0.1788)
OKLCHoklch(36.21% 0.184 283)
XYZxyz(7.7683, 3.9668, 30.0560)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391C98 #7B981C
analogous
#1C3D98 #391C98 #771C98
triadic
#391C98 #98391C #1C9839
tetradic
#391C98 #981C3D #7B981C #1C9877
square
#391C98 #981C3D #7B981C #1C9877
split-complementary
#391C98 #98771C #3D981C
monochromatic
#120931 #261264 #391C98 #4C26CC #7150DF

Accessibility & contrast

On white

11.71
#391C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#391C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391C98
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391C98#FFFFFF#000000##FFFFFF
##391C981.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #391c98;
/* rgb */ color: rgb(57, 28, 152);
/* oklch */ color: oklch(36.2% 0.184 283.0);
Tailwind
colors: {
  custom: {
    50: '#7c5db8',
    500: '#391c98',
    950: '#000000',
  },
}
SCSS
$custom: #391c98;
$custom-light: #7c5db8;
$custom-dark: #000000;
JSON
{
  "hex": "#391c98",
  "rgb": {
    "r": 57,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 254.032,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36207,
    "c": 0.18354,
    "h": 283
  },
  "luminance": 0.03967
}

Semantic roles & 50–950 ramp

primary
#391C98
secondary
#A6C14E
accent
#EC3CC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #391C98

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

Preview Lab → · Contrast checker → · Palette generator →

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