#391F87#391F87

#391F87 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.160 H 286.1°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#391F87
RGBrgb(57, 31, 135)
HSLhsl(255, 63%, 33%)
HSVhsv(255, 77%, 53%)
CMYKcmyk(57.8%, 77%, 0%, 47.1%)
CIE-LABlab(22.30, 39.91, -53.54)
CIE-LCHlch(22.30, 66.78, 306.70°)
OKLaboklab(34.79% 0.0444 -0.1541)
OKLCHoklch(34.79% 0.16 286.1)
XYZxyz(6.5492, 3.5987, 23.2665)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F87 #6D871F
analogous
#1F3987 #391F87 #6D1F87
triadic
#391F87 #87391F #1F8739
tetradic
#391F87 #871F39 #6D871F #1F876D
square
#391F87 #871F39 #6D871F #1F876D
split-complementary
#391F87 #876D1F #39871F
monochromatic
#0F0823 #241455 #391F87 #4E2AB9 #6D4BD6

Accessibility & contrast

On white

12.21
#391F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#391F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F87
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F87#FFFFFF#000000##FFFFFF
##391F871.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#143C51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #391f87;
/* rgb */ color: rgb(57, 31, 135);
/* oklch */ color: oklch(34.8% 0.160 286.1);
Tailwind
colors: {
  custom: {
    50: '#795eab',
    500: '#391f87',
    950: '#000000',
  },
}
SCSS
$custom: #391f87;
$custom-light: #795eab;
$custom-dark: #000000;
JSON
{
  "hex": "#391f87",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 255,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34793,
    "c": 0.16039,
    "h": 286.1
  },
  "luminance": 0.03599
}

Semantic roles & 50–950 ramp

primary
#391F87
secondary
#9DB84A
accent
#E642BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391F87

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

Preview Lab → · Contrast checker → · Palette generator →

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