#381584#381584

#381584 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.167 H 287.8°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#381584
RGBrgb(56, 21, 132)
HSLhsl(259, 73%, 30%)
HSVhsv(259, 84%, 52%)
CMYKcmyk(57.6%, 84.1%, 0%, 48.2%)
CIE-LABlab(20.21, 43.68, -55.09)
CIE-LCHlch(20.21, 70.30, 308.41°)
OKLaboklab(33.22% 0.0508 -0.1586)
OKLCHoklch(33.22% 0.167 287.8)
XYZxyz(6.0627, 3.0427, 22.0932)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381584 #618415
analogous
#152984 #381584 #701584
triadic
#381584 #843815 #158438
tetradic
#381584 #841529 #618415 #158470
square
#381584 #841529 #618415 #158470
split-complementary
#381584 #847015 #298415
monochromatic
#0B041A #220D4F #381584 #4E1DB9 #6A35DF

Accessibility & contrast

On white

13.05
#381584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#381584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381584
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381584#FFFFFF#000000##FFFFFF
##3815841.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#16374E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381584;
/* rgb */ color: rgb(56, 21, 132);
/* oklch */ color: oklch(33.2% 0.167 287.8);
Tailwind
colors: {
  custom: {
    50: '#7958a9',
    500: '#381584',
    950: '#000000',
  },
}
SCSS
$custom: #381584;
$custom-light: #7958a9;
$custom-dark: #000000;
JSON
{
  "hex": "#381584",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 132
  },
  "hsl": {
    "h": 258.919,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.33221,
    "c": 0.16651,
    "h": 287.8
  },
  "luminance": 0.03043
}

Semantic roles & 50–950 ramp

primary
#381584
secondary
#91B93C
accent
#EF39B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381584

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

Preview Lab → · Contrast checker → · Palette generator →

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