#391E8B#391E8B

#391E8B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.166 H 285.4°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#391E8B
RGBrgb(57, 30, 139)
HSLhsl(255, 64%, 33%)
HSVhsv(255, 78%, 55%)
CMYKcmyk(59%, 78.4%, 0%, 45.5%)
CIE-LABlab(22.52, 41.63, -55.67)
CIE-LCHlch(22.52, 69.52, 306.79°)
OKLaboklab(35.07% 0.044 -0.1604)
OKLCHoklch(35.07% 0.166 285.4)
XYZxyz(6.8104, 3.6621, 24.7691)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391E8B #708B1E
analogous
#1E3A8B #391E8B #6F1E8B
triadic
#391E8B #8B391E #1E8B39
tetradic
#391E8B #8B1E3A #708B1E #1E8B6F
square
#391E8B #8B1E3A #708B1E #1E8B6F
split-complementary
#391E8B #8B6F1E #3A8B1E
monochromatic
#100826 #241359 #391E8B #4E29BD #6E4BD8

Accessibility & contrast

On white

12.12
#391E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#391E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391E8B
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391E8B#FFFFFF#000000##FFFFFF
##391E8B1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#0E3D54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #391e8b;
/* rgb */ color: rgb(57, 30, 139);
/* oklch */ color: oklch(35.1% 0.166 285.4);
Tailwind
colors: {
  custom: {
    50: '#7a5dae',
    500: '#391e8b',
    950: '#000000',
  },
}
SCSS
$custom: #391e8b;
$custom-light: #7a5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#391e8b",
  "rgb": {
    "r": 57,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 254.862,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35072,
    "c": 0.16629,
    "h": 285.4
  },
  "luminance": 0.03662
}

Semantic roles & 50–950 ramp

primary
#391E8B
secondary
#9FBB4A
accent
#E740BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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