#381D84#381D84

#381D84 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.159 H 286.5°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#381D84
RGBrgb(56, 29, 132)
HSLhsl(256, 64%, 32%)
HSVhsv(256, 78%, 52%)
CMYKcmyk(57.6%, 78%, 0%, 48.2%)
CIE-LABlab(21.52, 39.90, -52.93)
CIE-LCHlch(21.52, 66.28, 307.01°)
OKLaboklab(34.13% 0.0452 -0.1524)
OKLCHoklch(34.13% 0.159 286.5)
XYZxyz(6.2339, 3.3851, 22.1502)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D84 #69841D
analogous
#1D3684 #381D84 #6C1D84
triadic
#381D84 #84381D #1D8438
tetradic
#381D84 #841D36 #69841D #1D846C
square
#381D84 #841D36 #69841D #1D846C
split-complementary
#381D84 #846C1D #36841D
monochromatic
#0D0720 #231252 #381D84 #4D28B6 #6B45D6

Accessibility & contrast

On white

12.52
#381D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#381D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D84
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D84#FFFFFF#000000##FFFFFF
##381D841.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#003182
Tritanopia (blue-blind)
#153A4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #381d84;
/* rgb */ color: rgb(56, 29, 132);
/* oklch */ color: oklch(34.1% 0.159 286.5);
Tailwind
colors: {
  custom: {
    50: '#785ca9',
    500: '#381d84',
    950: '#000000',
  },
}
SCSS
$custom: #381d84;
$custom-light: #785ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#381d84",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 132
  },
  "hsl": {
    "h": 255.728,
    "s": 63.975,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34133,
    "c": 0.15892,
    "h": 286.5
  },
  "luminance": 0.03385
}

Semantic roles & 50–950 ramp

primary
#381D84
secondary
#99B746
accent
#E741BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381D84

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

Preview Lab → · Contrast checker → · Palette generator →

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