#391877#391877

#391877 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.148 H 291.6°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#391877
RGBrgb(57, 24, 119)
HSLhsl(261, 66%, 28%)
HSVhsv(261, 80%, 47%)
CMYKcmyk(52.1%, 79.8%, 0%, 53.3%)
CIE-LABlab(19.45, 38.72, -48.07)
CIE-LCHlch(19.45, 61.72, 308.85°)
OKLaboklab(32.31% 0.0547 -0.138)
OKLCHoklch(32.31% 0.148 291.6)
XYZxyz(5.3428, 2.8548, 17.7187)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391877 #567718
analogous
#182677 #391877 #681877
triadic
#391877 #773918 #187739
tetradic
#391877 #771826 #567718 #187768
square
#391877 #771826 #567718 #187768
split-complementary
#391877 #776818 #267718
monochromatic
#0C0519 #210E44 #391877 #5122AA #6C33D6

Accessibility & contrast

On white

13.37
#391877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#391877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391877
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391877#FFFFFF#000000##FFFFFF
##3918771.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#243347
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #391877;
/* rgb */ color: rgb(57, 24, 119);
/* oklch */ color: oklch(32.3% 0.148 291.6);
Tailwind
colors: {
  custom: {
    50: '#77599f',
    500: '#391877',
    950: '#000000',
  },
}
SCSS
$custom: #391877;
$custom-light: #77599f;
$custom-dark: #000000;
JSON
{
  "hex": "#391877",
  "rgb": {
    "r": 57,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 260.842,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32312,
    "c": 0.14847,
    "h": 291.6
  },
  "luminance": 0.02855
}

Semantic roles & 50–950 ramp

primary
#391877
secondary
#86AC3F
accent
#E93EAE
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #391877

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

Preview Lab → · Contrast checker → · Palette generator →

#391877 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva