#381CA1#381CA1

#381CA1 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.194 H 280.9°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#381CA1
RGBrgb(56, 28, 161)
HSLhsl(253, 70%, 37%)
HSVhsv(253, 83%, 63%)
CMYKcmyk(65.2%, 82.6%, 0%, 36.9%)
CIE-LABlab(24.46, 48.99, -66.04)
CIE-LCHlch(24.46, 82.22, 306.57°)
OKLaboklab(37.1% 0.0368 -0.1906)
OKLCHoklch(37.1% 0.194 280.9)
XYZxyz(8.4771, 4.2438, 34.0837)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381CA1 #85A11C
analogous
#1C42A1 #381CA1 #7B1CA1
triadic
#381CA1 #A1381C #1CA138
tetradic
#381CA1 #A11C42 #85A11C #1CA17B
square
#381CA1 #A11C42 #85A11C #1CA17B
split-complementary
#381CA1 #A17B1C #42A11C
monochromatic
#140A39 #26136D #381CA1 #4A25D5 #7356E2

Accessibility & contrast

On white

11.36
#381CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#381CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381CA1
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381CA1#FFFFFF#000000##FFFFFF
##381CA11.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#004560
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #381ca1;
/* rgb */ color: rgb(56, 28, 161);
/* oklch */ color: oklch(37.1% 0.194 280.9);
Tailwind
colors: {
  custom: {
    50: '#7e5ebe',
    500: '#381ca1',
    950: '#000000',
  },
}
SCSS
$custom: #381ca1;
$custom-light: #7e5ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#381ca1",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 161
  },
  "hsl": {
    "h": 252.632,
    "s": 70.37,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37099,
    "c": 0.1941,
    "h": 280.9
  },
  "luminance": 0.04244
}

Semantic roles & 50–950 ramp

primary
#381CA1
secondary
#ADC554
accent
#ED3BC8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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