#391E89#391E89

#391E89 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.164 H 285.8°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#391E89
RGBrgb(57, 30, 137)
HSLhsl(255, 64%, 33%)
HSVhsv(255, 78%, 54%)
CMYKcmyk(58.4%, 78.1%, 0%, 46.3%)
CIE-LABlab(22.32, 41.03, -54.76)
CIE-LCHlch(22.32, 68.43, 306.84°)
OKLaboklab(34.87% 0.0446 -0.1577)
OKLCHoklch(34.87% 0.164 285.8)
XYZxyz(6.6656, 3.6042, 24.0065)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391E89 #6E891E
analogous
#1E3989 #391E89 #6E1E89
triadic
#391E89 #89391E #1E8939
tetradic
#391E89 #891E39 #6E891E #1E896E
square
#391E89 #891E39 #6E891E #1E896E
split-complementary
#391E89 #896E1E #39891E
monochromatic
#0F0825 #241357 #391E89 #4E29BB #6E4AD7

Accessibility & contrast

On white

12.20
#391E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391E89
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391E89#FFFFFF#000000##FFFFFF
##391E891.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#113C52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #391e89;
/* rgb */ color: rgb(57, 30, 137);
/* oklch */ color: oklch(34.9% 0.164 285.8);
Tailwind
colors: {
  custom: {
    50: '#795dac',
    500: '#391e89',
    950: '#000000',
  },
}
SCSS
$custom: #391e89;
$custom-light: #795dac;
$custom-dark: #000000;
JSON
{
  "hex": "#391e89",
  "rgb": {
    "r": 57,
    "g": 30,
    "b": 137
  },
  "hsl": {
    "h": 255.14,
    "s": 64.072,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34867,
    "c": 0.16388,
    "h": 285.8
  },
  "luminance": 0.03605
}

Semantic roles & 50–950 ramp

primary
#391E89
secondary
#9DBA49
accent
#E741BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391E89

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

Preview Lab → · Contrast checker → · Palette generator →

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