#391881#391881

#391881 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.160 H 288.7°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#391881
RGBrgb(57, 24, 129)
HSLhsl(259, 69%, 30%)
HSVhsv(259, 81%, 51%)
CMYKcmyk(55.8%, 81.4%, 0%, 49.4%)
CIE-LABlab(20.47, 41.61, -52.76)
CIE-LCHlch(20.47, 67.20, 308.26°)
OKLaboklab(33.33% 0.0515 -0.1518)
OKLCHoklch(33.33% 0.16 288.7)
XYZxyz(5.9753, 3.1078, 21.0496)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391881 #608118
analogous
#182C81 #391881 #6D1881
triadic
#391881 #813918 #188139
tetradic
#391881 #81182C #608118 #18816D
square
#391881 #81182C #608118 #18816D
split-complementary
#391881 #816D18 #2C8118
monochromatic
#0B051A #220E4D #391881 #5022B5 #6C39DA

Accessibility & contrast

On white

12.95
#391881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#391881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391881
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391881#FFFFFF#000000##FFFFFF
##3918811.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#1C374C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #391881;
/* rgb */ color: rgb(57, 24, 129);
/* oklch */ color: oklch(33.3% 0.160 288.7);
Tailwind
colors: {
  custom: {
    50: '#795aa7',
    500: '#391881',
    950: '#000000',
  },
}
SCSS
$custom: #391881;
$custom-light: #795aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#391881",
  "rgb": {
    "r": 57,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 258.857,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.3333,
    "c": 0.16028,
    "h": 288.7
  },
  "luminance": 0.03108
}

Semantic roles & 50–950 ramp

primary
#391881
secondary
#90B540
accent
#EB3CB4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391881

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

Preview Lab → · Contrast checker → · Palette generator →

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