#381B84#381B84

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

Color values

HEX#381B84
RGBrgb(56, 27, 132)
HSLhsl(257, 66%, 31%)
HSVhsv(257, 80%, 52%)
CMYKcmyk(57.6%, 79.5%, 0%, 48.2%)
CIE-LABlab(21.17, 40.91, -53.51)
CIE-LCHlch(21.17, 67.36, 307.40°)
OKLaboklab(33.89% 0.0467 -0.154)
OKLCHoklch(33.89% 0.161 286.9)
XYZxyz(6.1864, 3.2902, 22.1344)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B84 #67841B
analogous
#1B3284 #381B84 #6C1B84
triadic
#381B84 #84381B #1B8438
tetradic
#381B84 #841B32 #67841B #1B846C
square
#381B84 #841B32 #67841B #1B846C
split-complementary
#381B84 #846C1B #32841B
monochromatic
#0D061E #221151 #381B84 #4E25B7 #6B41D8

Accessibility & contrast

On white

12.66
#381B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381B84
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B84#FFFFFF#000000##FFFFFF
##381B841.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#15394F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381b84;
/* rgb */ color: rgb(56, 27, 132);
/* oklch */ color: oklch(33.9% 0.161 286.9);
Tailwind
colors: {
  custom: {
    50: '#785ba9',
    500: '#381b84',
    950: '#000000',
  },
}
SCSS
$custom: #381b84;
$custom-light: #785ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#381b84",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 256.571,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33885,
    "c": 0.16097,
    "h": 286.9
  },
  "luminance": 0.03291
}

Semantic roles & 50–950 ramp

primary
#381B84
secondary
#97B743
accent
#E93FBA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381B84

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

Preview Lab → · Contrast checker → · Palette generator →

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