#391F85#391F85

#391F85 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.158 H 286.5°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#391F85
RGBrgb(57, 31, 133)
HSLhsl(255, 62%, 32%)
HSVhsv(255, 77%, 52%)
CMYKcmyk(57.1%, 76.7%, 0%, 47.8%)
CIE-LABlab(22.10, 39.30, -52.61)
CIE-LCHlch(22.10, 65.67, 306.76°)
OKLaboklab(34.59% 0.0449 -0.1514)
OKLCHoklch(34.59% 0.158 286.5)
XYZxyz(6.4097, 3.5429, 22.5319)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F85 #6B851F
analogous
#1F3885 #391F85 #6C1F85
triadic
#391F85 #85391F #1F8539
tetradic
#391F85 #851F38 #6B851F #1F856C
square
#391F85 #851F38 #6B851F #1F856C
split-complementary
#391F85 #856C1F #38851F
monochromatic
#0E0822 #241353 #391F85 #4E2BB7 #6D4AD5

Accessibility & contrast

On white

12.29
#391F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#391F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F85
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F85#FFFFFF#000000##FFFFFF
##391F851.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#173B50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #391f85;
/* rgb */ color: rgb(57, 31, 133);
/* oklch */ color: oklch(34.6% 0.158 286.5);
Tailwind
colors: {
  custom: {
    50: '#795ea9',
    500: '#391f85',
    950: '#000000',
  },
}
SCSS
$custom: #391f85;
$custom-light: #795ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#391f85",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 255.294,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34592,
    "c": 0.15793,
    "h": 286.5
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#391F85
secondary
#9BB749
accent
#E543BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391F85

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

Preview Lab → · Contrast checker → · Palette generator →

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