#381984#381984

#381984 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.163 H 287.2°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#381984
RGBrgb(56, 25, 132)
HSLhsl(257, 68%, 31%)
HSVhsv(257, 81%, 52%)
CMYKcmyk(57.6%, 81.1%, 0%, 48.2%)
CIE-LABlab(20.83, 41.88, -54.06)
CIE-LCHlch(20.83, 68.39, 307.76°)
OKLaboklab(33.65% 0.0482 -0.1556)
OKLCHoklch(33.65% 0.163 287.2)
XYZxyz(6.1421, 3.2016, 22.1196)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381984 #658419
analogous
#192F84 #381984 #6D1984
triadic
#381984 #843819 #198438
tetradic
#381984 #84192F #658419 #19846D
square
#381984 #84192F #658419 #19846D
split-complementary
#381984 #846D19 #2F8419
monochromatic
#0C061D #220F51 #381984 #4E23B7 #6B3DDA

Accessibility & contrast

On white

12.80
#381984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#381984 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381984
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381984#FFFFFF#000000##FFFFFF
##3819841.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381984;
/* rgb */ color: rgb(56, 25, 132);
/* oklch */ color: oklch(33.7% 0.163 287.2);
Tailwind
colors: {
  custom: {
    50: '#785aa9',
    500: '#381984',
    950: '#000000',
  },
}
SCSS
$custom: #381984;
$custom-light: #785aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#381984",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 257.383,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33651,
    "c": 0.16292,
    "h": 287.2
  },
  "luminance": 0.03202
}

Semantic roles & 50–950 ramp

primary
#381984
secondary
#95B841
accent
#EB3DB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381984

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

Preview Lab → · Contrast checker → · Palette generator →

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