#381CA9#381CA9

#381CA9 is a dark, highly saturated violet. Relative luminance 0.045; OKLCH L 38.0% C 0.203 H 279.7°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#381CA9
RGBrgb(56, 28, 169)
HSLhsl(252, 72%, 39%)
HSVhsv(252, 83%, 66%)
CMYKcmyk(66.9%, 83.4%, 0%, 33.7%)
CIE-LABlab(25.37, 51.31, -69.39)
CIE-LCHlch(25.37, 86.30, 306.48°)
OKLaboklab(37.99% 0.0341 -0.2003)
OKLCHoklch(37.99% 0.203 279.7)
XYZxyz(9.2053, 4.5351, 37.9187)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381CA9 #8DA91C
analogous
#1C46A9 #381CA9 #7E1CA9
triadic
#381CA9 #A9381C #1CA938
tetradic
#381CA9 #A91C46 #8DA91C #1CA97E
square
#381CA9 #A91C46 #8DA91C #1CA97E
split-complementary
#381CA9 #A97E1C #46A91C
monochromatic
#150B40 #271374 #381CA9 #4B27DB #775BE4

Accessibility & contrast

On white

11.01
#381CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#381CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381CA9
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381CA9#FFFFFF#000000##FFFFFF
##381CA91.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AD
Deuteranopia (green-blind)
#0037A7
Tritanopia (blue-blind)
#004965
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #381ca9;
/* rgb */ color: rgb(56, 28, 169);
/* oklch */ color: oklch(38.0% 0.203 279.7);
Tailwind
colors: {
  custom: {
    50: '#7f5ec4',
    500: '#381ca9',
    950: '#000000',
  },
}
SCSS
$custom: #381ca9;
$custom-light: #7f5ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#381ca9",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 169
  },
  "hsl": {
    "h": 251.915,
    "s": 71.574,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37988,
    "c": 0.20322,
    "h": 279.7
  },
  "luminance": 0.04536
}

Semantic roles & 50–950 ramp

primary
#381CA9
secondary
#B2C859
accent
#EE39CA
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #381CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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