#391A98#391A98

#391A98 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.185 H 283.2°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#391A98
RGBrgb(57, 26, 152)
HSLhsl(255, 71%, 35%)
HSVhsv(255, 83%, 60%)
CMYKcmyk(62.5%, 82.9%, 0%, 40.4%)
CIE-LABlab(23.25, 47.36, -62.52)
CIE-LCHlch(23.25, 78.43, 307.14°)
OKLaboklab(35.99% 0.0424 -0.1803)
OKLCHoklch(35.99% 0.185 283.2)
XYZxyz(7.7225, 3.8751, 30.0407)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391A98 #79981A
analogous
#1A3A98 #391A98 #781A98
triadic
#391A98 #98391A #1A9839
tetradic
#391A98 #981A3A #79981A #1A9878
square
#391A98 #981A3A #79981A #1A9878
split-complementary
#391A98 #98781A #3A981A
monochromatic
#12082F #251164 #391A98 #4D23CC #714CE0

Accessibility & contrast

On white

11.83
#391A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391A98
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391A98#FFFFFF#000000##FFFFFF
##391A981.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #391a98;
/* rgb */ color: rgb(57, 26, 152);
/* oklch */ color: oklch(36.0% 0.185 283.2);
Tailwind
colors: {
  custom: {
    50: '#7d5cb8',
    500: '#391a98',
    950: '#000000',
  },
}
SCSS
$custom: #391a98;
$custom-light: #7d5cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#391a98",
  "rgb": {
    "r": 57,
    "g": 26,
    "b": 152
  },
  "hsl": {
    "h": 254.762,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35994,
    "c": 0.18521,
    "h": 283.2
  },
  "luminance": 0.03876
}

Semantic roles & 50–950 ramp

primary
#391A98
secondary
#A5C24B
accent
#EE3AC1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #391A98

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

Preview Lab → · Contrast checker → · Palette generator →

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