#381EA1#381EA1

#381EA1 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.192 H 280.7°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#381EA1
RGBrgb(56, 30, 161)
HSLhsl(252, 69%, 37%)
HSVhsv(252, 81%, 63%)
CMYKcmyk(65.2%, 81.4%, 0%, 36.9%)
CIE-LABlab(24.77, 48.09, -65.53)
CIE-LCHlch(24.77, 81.28, 306.27°)
OKLaboklab(37.31% 0.0358 -0.1891)
OKLCHoklch(37.31% 0.192 280.7)
XYZxyz(8.5261, 4.3418, 34.1001)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381EA1 #87A11E
analogous
#1E46A1 #381EA1 #791EA1
triadic
#381EA1 #A1381E #1EA138
tetradic
#381EA1 #A11E46 #87A11E #1EA179
square
#381EA1 #A11E46 #87A11E #1EA179
split-complementary
#381EA1 #A1791E #46A11E
monochromatic
#140B3A #26146D #381EA1 #4A28D5 #7459E0

Accessibility & contrast

On white

11.24
#381EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#381EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381EA1
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381EA1#FFFFFF#000000##FFFFFF
##381EA11.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #381ea1;
/* rgb */ color: rgb(56, 30, 161);
/* oklch */ color: oklch(37.3% 0.192 280.7);
Tailwind
colors: {
  custom: {
    50: '#7e5fbe',
    500: '#381ea1',
    950: '#000000',
  },
}
SCSS
$custom: #381ea1;
$custom-light: #7e5fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#381ea1",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 251.908,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37313,
    "c": 0.19247,
    "h": 280.7
  },
  "luminance": 0.04343
}

Semantic roles & 50–950 ramp

primary
#381EA1
secondary
#AEC457
accent
#EB3CC9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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