#391D95#391D95

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

Color values

HEX#391D95
RGBrgb(57, 29, 149)
HSLhsl(254, 67%, 35%)
HSVhsv(254, 81%, 58%)
CMYKcmyk(61.7%, 80.5%, 0%, 41.6%)
CIE-LABlab(23.40, 45.11, -60.43)
CIE-LCHlch(23.40, 75.41, 306.74°)
OKLaboklab(36% 0.0417 -0.1742)
OKLCHoklch(36% 0.179 283.4)
XYZxyz(7.5498, 3.9180, 28.7864)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391D95 #79951D
analogous
#1D3D95 #391D95 #751D95
triadic
#391D95 #95391D #1D9539
tetradic
#391D95 #951D3D #79951D #1D9575
square
#391D95 #951D3D #79951D #1D9575
split-complementary
#391D95 #95751D #3D951D
monochromatic
#12092F #251362 #391D95 #4D27C8 #7150DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##391D95#FFFFFF#000000##FFFFFF
##391D951.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)
#003B98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #391d95;
/* rgb */ color: rgb(57, 29, 149);
/* oklch */ color: oklch(36.0% 0.179 283.4);
Tailwind
colors: {
  custom: {
    50: '#7c5eb5',
    500: '#391d95',
    950: '#000000',
  },
}
SCSS
$custom: #391d95;
$custom-light: #7c5eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#391d95",
  "rgb": {
    "r": 57,
    "g": 29,
    "b": 149
  },
  "hsl": {
    "h": 254,
    "s": 67.416,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35997,
    "c": 0.17916,
    "h": 283.4
  },
  "luminance": 0.03919
}

Semantic roles & 50–950 ramp

primary
#391D95
secondary
#A5C04E
accent
#EA3DC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #391D95

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

Preview Lab → · Contrast checker → · Palette generator →

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