#381CA7#381CA7

#381CA7 is a dark, highly saturated violet. Relative luminance 0.045; OKLCH L 37.8% C 0.201 H 280.0°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#381CA7
RGBrgb(56, 28, 167)
HSLhsl(252, 71%, 38%)
HSVhsv(252, 83%, 65%)
CMYKcmyk(66.5%, 83.2%, 0%, 34.5%)
CIE-LABlab(25.14, 50.73, -68.56)
CIE-LCHlch(25.14, 85.29, 306.50°)
OKLaboklab(37.77% 0.0348 -0.1979)
OKLCHoklch(37.77% 0.201 280)
XYZxyz(9.0190, 4.4605, 36.9374)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381CA7 #8BA71C
analogous
#1C46A7 #381CA7 #7D1CA7
triadic
#381CA7 #A7381C #1CA738
tetradic
#381CA7 #A71C46 #8BA71C #1CA77D
square
#381CA7 #A71C46 #8BA71C #1CA77D
split-complementary
#381CA7 #A77D1C #46A71C
monochromatic
#150A3E #261373 #381CA7 #4A26DB #765AE3

Accessibility & contrast

On white

11.10
#381CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#381CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381CA7
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381CA7#FFFFFF#000000##FFFFFF
##381CA71.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0036A5
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #381ca7;
/* rgb */ color: rgb(56, 28, 167);
/* oklch */ color: oklch(37.8% 0.201 280.0);
Tailwind
colors: {
  custom: {
    50: '#7f5ec3',
    500: '#381ca7',
    950: '#000000',
  },
}
SCSS
$custom: #381ca7;
$custom-light: #7f5ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#381ca7",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 167
  },
  "hsl": {
    "h": 252.086,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37765,
    "c": 0.20095,
    "h": 280
  },
  "luminance": 0.04461
}

Semantic roles & 50–950 ramp

primary
#381CA7
secondary
#B1C758
accent
#EE3ACA
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #381CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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