#381AA0#381AA0

#381AA0 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.195 H 281.3°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#381AA0
RGBrgb(56, 26, 160)
HSLhsl(253, 72%, 36%)
HSVhsv(253, 84%, 63%)
CMYKcmyk(65%, 83.8%, 0%, 37.3%)
CIE-LABlab(24.05, 49.57, -66.10)
CIE-LCHlch(24.05, 82.62, 306.86°)
OKLaboklab(36.79% 0.0381 -0.1907)
OKLCHoklch(36.79% 0.195 281.3)
XYZxyz(8.3434, 4.1170, 33.6059)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381AA0 #82A01A
analogous
#1A3FA0 #381AA0 #7B1AA0
triadic
#381AA0 #A0381A #1AA038
tetradic
#381AA0 #A01A3F #82A01A #1AA07B
square
#381AA0 #A01A3F #82A01A #1AA07B
split-complementary
#381AA0 #A07B1A #3FA01A
monochromatic
#130937 #26116B #381AA0 #4A23D5 #7252E3

Accessibility & contrast

On white

11.52
#381AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#381AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381AA0
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381AA0#FFFFFF#000000##FFFFFF
##381AA01.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #381aa0;
/* rgb */ color: rgb(56, 26, 160);
/* oklch */ color: oklch(36.8% 0.195 281.3);
Tailwind
colors: {
  custom: {
    50: '#7e5dbd',
    500: '#381aa0',
    950: '#000000',
  },
}
SCSS
$custom: #381aa0;
$custom-light: #7e5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#381aa0",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 160
  },
  "hsl": {
    "h": 253.433,
    "s": 72.043,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36786,
    "c": 0.1945,
    "h": 281.3
  },
  "luminance": 0.04118
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #381AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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