#391A8F#391A8F

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

Color values

HEX#391A8F
RGBrgb(57, 26, 143)
HSLhsl(256, 69%, 33%)
HSVhsv(256, 82%, 56%)
CMYKcmyk(60.1%, 81.8%, 0%, 43.9%)
CIE-LABlab(22.27, 44.75, -58.58)
CIE-LCHlch(22.27, 73.71, 307.38°)
OKLaboklab(35.02% 0.0455 -0.1688)
OKLCHoklch(35.02% 0.175 285.1)
XYZxyz(7.0132, 3.5914, 26.3049)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391A8F #708F1A
analogous
#1A368F #391A8F #731A8F
triadic
#391A8F #8F391A #1A8F39
tetradic
#391A8F #8F1A36 #708F1A #1A8F73
square
#391A8F #8F1A36 #708F1A #1A8F73
split-complementary
#391A8F #8F731A #368F1A
monochromatic
#100727 #24115B #391A8F #4E23C3 #6E46DD

Accessibility & contrast

On white

12.22
#391A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391A8F
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391A8F#FFFFFF#000000##FFFFFF
##391A8F1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#053D55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #391a8f;
/* rgb */ color: rgb(57, 26, 143);
/* oklch */ color: oklch(35.0% 0.175 285.1);
Tailwind
colors: {
  custom: {
    50: '#7b5cb1',
    500: '#391a8f',
    950: '#000000',
  },
}
SCSS
$custom: #391a8f;
$custom-light: #7b5cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#391a8f",
  "rgb": {
    "r": 57,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 255.897,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35024,
    "c": 0.1748,
    "h": 285.1
  },
  "luminance": 0.03592
}

Semantic roles & 50–950 ramp

primary
#391A8F
secondary
#9FBF46
accent
#EC3CBD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #391A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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