#391E85#391E85

#391E85 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.159 H 286.7°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#391E85
RGBrgb(57, 30, 133)
HSLhsl(256, 63%, 32%)
HSVhsv(256, 77%, 52%)
CMYKcmyk(57.1%, 77.4%, 0%, 47.8%)
CIE-LABlab(21.91, 39.83, -52.91)
CIE-LCHlch(21.91, 66.23, 306.97°)
OKLaboklab(34.46% 0.0457 -0.1523)
OKLCHoklch(34.46% 0.159 286.7)
XYZxyz(6.3840, 3.4915, 22.5233)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391E85 #6A851E
analogous
#1E3785 #391E85 #6D1E85
triadic
#391E85 #85391E #1E8539
tetradic
#391E85 #851E37 #6A851E #1E856D
square
#391E85 #851E37 #6A851E #1E856D
split-complementary
#391E85 #856D1E #37851E
monochromatic
#0E0721 #241353 #391E85 #4E29B7 #6D48D6

Accessibility & contrast

On white

12.36
#391E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#391E85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391E85
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391E85#FFFFFF#000000##FFFFFF
##391E851.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #391e85;
/* rgb */ color: rgb(57, 30, 133);
/* oklch */ color: oklch(34.5% 0.159 286.7);
Tailwind
colors: {
  custom: {
    50: '#795daa',
    500: '#391e85',
    950: '#000000',
  },
}
SCSS
$custom: #391e85;
$custom-light: #795daa;
$custom-dark: #000000;
JSON
{
  "hex": "#391e85",
  "rgb": {
    "r": 57,
    "g": 30,
    "b": 133
  },
  "hsl": {
    "h": 255.728,
    "s": 63.19,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34462,
    "c": 0.159,
    "h": 286.7
  },
  "luminance": 0.03492
}

Semantic roles & 50–950 ramp

primary
#391E85
secondary
#9AB847
accent
#E642BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391E85

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

Preview Lab → · Contrast checker → · Palette generator →

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