#381D82#381D82

#381D82 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.156 H 287.0°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#381D82
RGBrgb(56, 29, 130)
HSLhsl(256, 64%, 31%)
HSVhsv(256, 78%, 51%)
CMYKcmyk(56.9%, 77.7%, 0%, 49%)
CIE-LABlab(21.32, 39.29, -52.00)
CIE-LCHlch(21.32, 65.17, 307.08°)
OKLaboklab(33.93% 0.0458 -0.1496)
OKLCHoklch(33.93% 0.156 287)
XYZxyz(6.0983, 3.3309, 21.4363)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D82 #67821D
analogous
#1D3482 #381D82 #6A1D82
triadic
#381D82 #82381D #1D8238
tetradic
#381D82 #821D34 #67821D #1D826A
square
#381D82 #821D34 #67821D #1D826A
split-complementary
#381D82 #826A1D #34821D
monochromatic
#0D071E #221250 #381D82 #4E28B4 #6B44D5

Accessibility & contrast

On white

12.60
#381D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#381D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D82
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D82#FFFFFF#000000##FFFFFF
##381D821.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381d82;
/* rgb */ color: rgb(56, 29, 130);
/* oklch */ color: oklch(33.9% 0.156 287.0);
Tailwind
colors: {
  custom: {
    50: '#785ca7',
    500: '#381d82',
    950: '#000000',
  },
}
SCSS
$custom: #381d82;
$custom-light: #785ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#381d82",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 256.04,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3393,
    "c": 0.15647,
    "h": 287
  },
  "luminance": 0.03331
}

Semantic roles & 50–950 ramp

primary
#381D82
secondary
#97B546
accent
#E741BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381D82

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

Preview Lab → · Contrast checker → · Palette generator →

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