#391D98#391D98

#391D98 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.183 H 282.9°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#391D98
RGBrgb(57, 29, 152)
HSLhsl(254, 68%, 35%)
HSVhsv(254, 81%, 60%)
CMYKcmyk(62.5%, 80.9%, 0%, 40.4%)
CIE-LABlab(23.72, 46.00, -61.75)
CIE-LCHlch(23.72, 77.00, 306.68°)
OKLaboklab(36.32% 0.0407 -0.1781)
OKLCHoklch(36.32% 0.183 282.9)
XYZxyz(7.7924, 4.0150, 30.0640)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391D98 #7C981D
analogous
#1D3E98 #391D98 #771D98
triadic
#391D98 #98391D #1D9839
tetradic
#391D98 #981D3E #7C981D #1D9877
square
#391D98 #981D3E #7C981D #1D9877
split-complementary
#391D98 #98771D #3E981D
monochromatic
#120931 #261365 #391D98 #4C27CB #7152DE

Accessibility & contrast

On white

11.65
#391D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#391D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391D98
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391D98#FFFFFF#000000##FFFFFF
##391D981.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.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: #391d98;
/* rgb */ color: rgb(57, 29, 152);
/* oklch */ color: oklch(36.3% 0.183 282.9);
Tailwind
colors: {
  custom: {
    50: '#7c5eb8',
    500: '#391d98',
    950: '#000000',
  },
}
SCSS
$custom: #391d98;
$custom-light: #7c5eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#391d98",
  "rgb": {
    "r": 57,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 253.659,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36317,
    "c": 0.18267,
    "h": 282.9
  },
  "luminance": 0.04016
}

Semantic roles & 50–950 ramp

primary
#391D98
secondary
#A7C150
accent
#EB3DC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #391D98

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

Preview Lab → · Contrast checker → · Palette generator →

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