#381C82#381C82

#381C82 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.158 H 287.2°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#381C82
RGBrgb(56, 28, 130)
HSLhsl(256, 65%, 31%)
HSVhsv(256, 78%, 51%)
CMYKcmyk(56.9%, 78.5%, 0%, 49%)
CIE-LABlab(21.14, 39.81, -52.30)
CIE-LCHlch(21.14, 65.72, 307.28°)
OKLaboklab(33.8% 0.0466 -0.1505)
OKLCHoklch(33.8% 0.158 287.2)
XYZxyz(6.0742, 3.2826, 21.4283)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C82 #66821C
analogous
#1C3382 #381C82 #6B1C82
triadic
#381C82 #82381C #1C8238
tetradic
#381C82 #821C33 #66821C #1C826B
square
#381C82 #821C33 #66821C #1C826B
split-complementary
#381C82 #826B1C #33821C
monochromatic
#0D061D #221150 #381C82 #4E27B4 #6B42D6

Accessibility & contrast

On white

12.68
#381C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#381C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C82
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C82#FFFFFF#000000##FFFFFF
##381C821.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#18394E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381c82;
/* rgb */ color: rgb(56, 28, 130);
/* oklch */ color: oklch(33.8% 0.158 287.2);
Tailwind
colors: {
  custom: {
    50: '#785ca7',
    500: '#381c82',
    950: '#000000',
  },
}
SCSS
$custom: #381c82;
$custom-light: #785ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#381c82",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 256.471,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33803,
    "c": 0.15753,
    "h": 287.2
  },
  "luminance": 0.03283
}

Semantic roles & 50–950 ramp

primary
#381C82
secondary
#96B544
accent
#E840BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381C82

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

Preview Lab → · Contrast checker → · Palette generator →

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