#381884#381884

#381884 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.164 H 287.3°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#381884
RGBrgb(56, 24, 132)
HSLhsl(258, 69%, 31%)
HSVhsv(258, 82%, 52%)
CMYKcmyk(57.6%, 81.8%, 0%, 48.2%)
CIE-LABlab(20.67, 42.35, -54.33)
CIE-LCHlch(20.67, 68.89, 307.93°)
OKLaboklab(33.54% 0.0488 -0.1564)
OKLCHoklch(33.54% 0.164 287.3)
XYZxyz(6.1211, 3.1596, 22.1127)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381884 #648418
analogous
#182E84 #381884 #6E1884
triadic
#381884 #843818 #188438
tetradic
#381884 #84182E #648418 #18846E
square
#381884 #84182E #648418 #18846E
split-complementary
#381884 #846E18 #2E8418
monochromatic
#0C051C #220F50 #381884 #4E21B8 #6B3BDB

Accessibility & contrast

On white

12.87
#381884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#381884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381884
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381884#FFFFFF#000000##FFFFFF
##3818841.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002F82
Tritanopia (blue-blind)
#15384E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381884;
/* rgb */ color: rgb(56, 24, 132);
/* oklch */ color: oklch(33.5% 0.164 287.3);
Tailwind
colors: {
  custom: {
    50: '#795aa9',
    500: '#381884',
    950: '#000000',
  },
}
SCSS
$custom: #381884;
$custom-light: #795aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#381884",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 257.778,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33538,
    "c": 0.16386,
    "h": 287.3
  },
  "luminance": 0.0316
}

Semantic roles & 50–950 ramp

primary
#381884
secondary
#94B840
accent
#EC3CB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381884

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

Preview Lab → · Contrast checker → · Palette generator →

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