#381BA1#381BA1

#381BA1 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.195 H 281.0°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#381BA1
RGBrgb(56, 27, 161)
HSLhsl(253, 71%, 37%)
HSVhsv(253, 83%, 63%)
CMYKcmyk(65.2%, 83.2%, 0%, 36.9%)
CIE-LABlab(24.31, 49.43, -66.28)
CIE-LCHlch(24.31, 82.68, 306.71°)
OKLaboklab(37% 0.0373 -0.1913)
OKLCHoklch(37% 0.195 281)
XYZxyz(8.4538, 4.1972, 34.0759)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381BA1 #84A11B
analogous
#1B41A1 #381BA1 #7B1BA1
triadic
#381BA1 #A1381B #1BA138
tetradic
#381BA1 #A11B41 #84A11B #1BA17B
square
#381BA1 #A11B41 #84A11B #1BA17B
split-complementary
#381BA1 #A17B1B #41A11B
monochromatic
#140938 #26126D #381BA1 #4A24D5 #7354E2

Accessibility & contrast

On white

11.42
#381BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#381BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381BA1
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381BA1#FFFFFF#000000##FFFFFF
##381BA11.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381ba1;
/* rgb */ color: rgb(56, 27, 161);
/* oklch */ color: oklch(37.0% 0.195 281.0);
Tailwind
colors: {
  custom: {
    50: '#7e5dbe',
    500: '#381ba1',
    950: '#000000',
  },
}
SCSS
$custom: #381ba1;
$custom-light: #7e5dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#381ba1",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 252.985,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36997,
    "c": 0.19488,
    "h": 281
  },
  "luminance": 0.04198
}

Semantic roles & 50–950 ramp

primary
#381BA1
secondary
#ACC552
accent
#EE3AC7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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