#391E7B#391E7B

#391E7B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.147 H 289.2°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#391E7B
RGBrgb(57, 30, 123)
HSLhsl(257, 61%, 30%)
HSVhsv(257, 76%, 48%)
CMYKcmyk(53.7%, 75.6%, 0%, 51.8%)
CIE-LABlab(20.94, 36.80, -48.19)
CIE-LCHlch(20.94, 60.63, 307.37°)
OKLaboklab(33.47% 0.0483 -0.1384)
OKLCHoklch(33.47% 0.147 289.2)
XYZxyz(5.7257, 3.2282, 19.0565)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391E7B #607B1E
analogous
#1E327B #391E7B #671E7B
triadic
#391E7B #7B391E #1E7B39
tetradic
#391E7B #7B1E32 #607B1E #1E7B67
square
#391E7B #7B1E32 #607B1E #1E7B67
split-complementary
#391E7B #7B671E #327B1E
monochromatic
#0B0619 #22124A #391E7B #502AAC #6C42D1

Accessibility & contrast

On white

12.76
#391E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#391E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391E7B
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391E7B#FFFFFF#000000##FFFFFF
##391E7B1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#21374A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #391e7b;
/* rgb */ color: rgb(57, 30, 123);
/* oklch */ color: oklch(33.5% 0.147 289.2);
Tailwind
colors: {
  custom: {
    50: '#775da2',
    500: '#391e7b',
    950: '#000000',
  },
}
SCSS
$custom: #391e7b;
$custom-light: #775da2;
$custom-dark: #000000;
JSON
{
  "hex": "#391e7b",
  "rgb": {
    "r": 57,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 257.419,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.33474,
    "c": 0.14665,
    "h": 289.2
  },
  "luminance": 0.03228
}

Semantic roles & 50–950 ramp

primary
#391E7B
secondary
#90AE46
accent
#E444B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #391E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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