#391E8A#391E8A

#391E8A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.165 H 285.6°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#391E8A
RGBrgb(57, 30, 138)
HSLhsl(255, 64%, 33%)
HSVhsv(255, 78%, 54%)
CMYKcmyk(58.7%, 78.3%, 0%, 45.9%)
CIE-LABlab(22.42, 41.33, -55.22)
CIE-LCHlch(22.42, 68.97, 306.82°)
OKLaboklab(34.97% 0.0443 -0.159)
OKLCHoklch(34.97% 0.165 285.6)
XYZxyz(6.7377, 3.6330, 24.3860)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391E8A #6F8A1E
analogous
#1E398A #391E8A #6F1E8A
triadic
#391E8A #8A391E #1E8A39
tetradic
#391E8A #8A1E39 #6F8A1E #1E8A6F
square
#391E8A #8A1E39 #6F8A1E #1E8A6F
split-complementary
#391E8A #8A6F1E #398A1E
monochromatic
#0F0825 #241358 #391E8A #4E29BC #6E4BD8

Accessibility & contrast

On white

12.16
#391E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391E8A
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391E8A#FFFFFF#000000##FFFFFF
##391E8A1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#0F3D53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #391e8a;
/* rgb */ color: rgb(57, 30, 138);
/* oklch */ color: oklch(35.0% 0.165 285.6);
Tailwind
colors: {
  custom: {
    50: '#7a5dad',
    500: '#391e8a',
    950: '#000000',
  },
}
SCSS
$custom: #391e8a;
$custom-light: #7a5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#391e8a",
  "rgb": {
    "r": 57,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 255,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34969,
    "c": 0.16509,
    "h": 285.6
  },
  "luminance": 0.03633
}

Semantic roles & 50–950 ramp

primary
#391E8A
secondary
#9EBA4A
accent
#E741BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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