#381A99#381A99

#381A99 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.187 H 282.5°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#381A99
RGBrgb(56, 26, 153)
HSLhsl(254, 71%, 35%)
HSVhsv(254, 83%, 60%)
CMYKcmyk(63.4%, 83%, 0%, 40%)
CIE-LABlab(23.27, 47.55, -63.12)
CIE-LCHlch(23.27, 79.02, 306.99°)
OKLaboklab(36.01% 0.0405 -0.1821)
OKLCHoklch(36.01% 0.187 282.5)
XYZxyz(7.7483, 3.8789, 30.4712)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A99 #7B991A
analogous
#1A3C99 #381A99 #771A99
triadic
#381A99 #99381A #1A9938
tetradic
#381A99 #991A3C #7B991A #1A9977
square
#381A99 #991A3C #7B991A #1A9977
split-complementary
#381A99 #99771A #3C991A
monochromatic
#120830 #251165 #381A99 #4B23CD #704DE1

Accessibility & contrast

On white

11.83
#381A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#381A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A99
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A99#FFFFFF#000000##FFFFFF
##381A991.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003397
Tritanopia (blue-blind)
#00415B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #381a99;
/* rgb */ color: rgb(56, 26, 153);
/* oklch */ color: oklch(36.0% 0.187 282.5);
Tailwind
colors: {
  custom: {
    50: '#7c5cb8',
    500: '#381a99',
    950: '#000000',
  },
}
SCSS
$custom: #381a99;
$custom-light: #7c5cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#381a99",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 153
  },
  "hsl": {
    "h": 254.173,
    "s": 70.95,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36012,
    "c": 0.18651,
    "h": 282.5
  },
  "luminance": 0.03879
}

Semantic roles & 50–950 ramp

primary
#381A99
secondary
#A7C34C
accent
#EE3AC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #381A99

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

Preview Lab → · Contrast checker → · Palette generator →

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