#381E84#381E84

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

Color values

HEX#381E84
RGBrgb(56, 30, 132)
HSLhsl(255, 63%, 32%)
HSVhsv(255, 77%, 52%)
CMYKcmyk(57.6%, 77.3%, 0%, 48.2%)
CIE-LABlab(21.71, 39.38, -52.63)
CIE-LCHlch(21.71, 65.73, 306.80°)
OKLaboklab(34.26% 0.0444 -0.1515)
OKLCHoklch(34.26% 0.158 286.3)
XYZxyz(6.2588, 3.4349, 22.1585)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E84 #6A841E
analogous
#1E3784 #381E84 #6B1E84
triadic
#381E84 #84381E #1E8438
tetradic
#381E84 #841E37 #6A841E #1E846B
square
#381E84 #841E37 #6A841E #1E846B
split-complementary
#381E84 #846B1E #37841E
monochromatic
#0E0720 #231352 #381E84 #4D29B6 #6B47D5

Accessibility & contrast

On white

12.45
#381E84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381E84
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E84#FFFFFF#000000##FFFFFF
##381E841.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381e84;
/* rgb */ color: rgb(56, 30, 132);
/* oklch */ color: oklch(34.3% 0.158 286.3);
Tailwind
colors: {
  custom: {
    50: '#785da9',
    500: '#381e84',
    950: '#000000',
  },
}
SCSS
$custom: #381e84;
$custom-light: #785da9;
$custom-dark: #000000;
JSON
{
  "hex": "#381e84",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 132
  },
  "hsl": {
    "h": 255.294,
    "s": 62.963,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34261,
    "c": 0.15786,
    "h": 286.3
  },
  "luminance": 0.03435
}

Semantic roles & 50–950 ramp

primary
#381E84
secondary
#9AB747
accent
#E642BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381E84

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

Preview Lab → · Contrast checker → · Palette generator →

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