#381AA1#381AA1

#381AA1 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.196 H 281.1°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#381AA1
RGBrgb(56, 26, 161)
HSLhsl(253, 72%, 37%)
HSVhsv(253, 84%, 63%)
CMYKcmyk(65.2%, 83.9%, 0%, 36.9%)
CIE-LABlab(24.17, 49.85, -66.52)
CIE-LCHlch(24.17, 83.13, 306.85°)
OKLaboklab(36.9% 0.0377 -0.192)
OKLCHoklch(36.9% 0.196 281.1)
XYZxyz(8.4313, 4.1521, 34.0684)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381AA1 #83A11A
analogous
#1A40A1 #381AA1 #7C1AA1
triadic
#381AA1 #A1381A #1AA138
tetradic
#381AA1 #A11A40 #83A11A #1AA17C
square
#381AA1 #A11A40 #83A11A #1AA17C
split-complementary
#381AA1 #A17C1A #40A11A
monochromatic
#130938 #26116C #381AA1 #4A23D6 #7252E3

Accessibility & contrast

On white

11.47
#381AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#381AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381AA1
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381AA1#FFFFFF#000000##FFFFFF
##381AA11.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00349F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #381aa1;
/* rgb */ color: rgb(56, 26, 161);
/* oklch */ color: oklch(36.9% 0.196 281.1);
Tailwind
colors: {
  custom: {
    50: '#7e5dbe',
    500: '#381aa1',
    950: '#000000',
  },
}
SCSS
$custom: #381aa1;
$custom-light: #7e5dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#381aa1",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 253.333,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36897,
    "c": 0.19563,
    "h": 281.1
  },
  "luminance": 0.04153
}

Semantic roles & 50–950 ramp

primary
#381AA1
secondary
#ACC651
accent
#EF39C6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #381AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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