#381D86#381D86

#381D86 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.161 H 286.1°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#381D86
RGBrgb(56, 29, 134)
HSLhsl(255, 64%, 32%)
HSVhsv(255, 78%, 53%)
CMYKcmyk(58.2%, 78.4%, 0%, 47.5%)
CIE-LABlab(21.73, 40.50, -53.85)
CIE-LCHlch(21.73, 67.38, 306.95°)
OKLaboklab(34.34% 0.0446 -0.1551)
OKLCHoklch(34.34% 0.161 286.1)
XYZxyz(6.3720, 3.4403, 22.8779)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D86 #6B861D
analogous
#1D3686 #381D86 #6D1D86
triadic
#381D86 #86381D #1D8638
tetradic
#381D86 #861D36 #6B861D #1D866D
square
#381D86 #861D36 #6B861D #1D866D
split-complementary
#381D86 #866D1D #36861D
monochromatic
#0E0721 #231254 #381D86 #4D28B8 #6C46D7

Accessibility & contrast

On white

12.44
#381D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#381D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D86
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D86#FFFFFF#000000##FFFFFF
##381D861.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#123B50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #381d86;
/* rgb */ color: rgb(56, 29, 134);
/* oklch */ color: oklch(34.3% 0.161 286.1);
Tailwind
colors: {
  custom: {
    50: '#785daa',
    500: '#381d86',
    950: '#000000',
  },
}
SCSS
$custom: #381d86;
$custom-light: #785daa;
$custom-dark: #000000;
JSON
{
  "hex": "#381d86",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 134
  },
  "hsl": {
    "h": 255.429,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34337,
    "c": 0.16136,
    "h": 286.1
  },
  "luminance": 0.03441
}

Semantic roles & 50–950 ramp

primary
#381D86
secondary
#9BB946
accent
#E740BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381D86

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

Preview Lab → · Contrast checker → · Palette generator →

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