#381A84#381A84

#381A84 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.162 H 287.0°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#381A84
RGBrgb(56, 26, 132)
HSLhsl(257, 67%, 31%)
HSVhsv(257, 80%, 52%)
CMYKcmyk(57.6%, 80.3%, 0%, 48.2%)
CIE-LABlab(21.00, 41.40, -53.79)
CIE-LCHlch(21.00, 67.88, 307.58°)
OKLaboklab(33.77% 0.0474 -0.1548)
OKLCHoklch(33.77% 0.162 287)
XYZxyz(6.1639, 3.2451, 22.1269)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A84 #66841A
analogous
#1A3184 #381A84 #6D1A84
triadic
#381A84 #84381A #1A8438
tetradic
#381A84 #841A31 #66841A #1A846D
square
#381A84 #841A31 #66841A #1A846D
split-complementary
#381A84 #846D1A #31841A
monochromatic
#0D061E #221051 #381A84 #4E24B7 #6B3FD9

Accessibility & contrast

On white

12.73
#381A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#381A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A84
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A84#FFFFFF#000000##FFFFFF
##381A841.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381a84;
/* rgb */ color: rgb(56, 26, 132);
/* oklch */ color: oklch(33.8% 0.162 287.0);
Tailwind
colors: {
  custom: {
    50: '#785ba9',
    500: '#381a84',
    950: '#000000',
  },
}
SCSS
$custom: #381a84;
$custom-light: #785ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#381a84",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 256.981,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33766,
    "c": 0.16195,
    "h": 287
  },
  "luminance": 0.03245
}

Semantic roles & 50–950 ramp

primary
#381A84
secondary
#96B842
accent
#EA3EB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381A84

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

Preview Lab → · Contrast checker → · Palette generator →

#381A84 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva