#381C99#381C99

#381C99 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.185 H 282.3°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#381C99
RGBrgb(56, 28, 153)
HSLhsl(253, 69%, 35%)
HSVhsv(253, 82%, 60%)
CMYKcmyk(63.4%, 81.7%, 0%, 40%)
CIE-LABlab(23.57, 46.65, -62.61)
CIE-LCHlch(23.57, 78.08, 306.69°)
OKLaboklab(36.22% 0.0394 -0.1806)
OKLCHoklch(36.22% 0.185 282.3)
XYZxyz(7.7941, 3.9706, 30.4865)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C99 #7D991C
analogous
#1C3E99 #381C99 #761C99
triadic
#381C99 #99381C #1C9938
tetradic
#381C99 #991C3E #7D991C #1C9976
square
#381C99 #991C3E #7D991C #1C9976
split-complementary
#381C99 #99761C #3E991C
monochromatic
#120932 #251365 #381C99 #4B25CD #7050DF

Accessibility & contrast

On white

11.70
#381C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#381C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C99
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C99#FFFFFF#000000##FFFFFF
##381C991.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003497
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #381c99;
/* rgb */ color: rgb(56, 28, 153);
/* oklch */ color: oklch(36.2% 0.185 282.3);
Tailwind
colors: {
  custom: {
    50: '#7c5db8',
    500: '#381c99',
    950: '#000000',
  },
}
SCSS
$custom: #381c99;
$custom-light: #7c5db8;
$custom-dark: #000000;
JSON
{
  "hex": "#381c99",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 153
  },
  "hsl": {
    "h": 253.44,
    "s": 69.061,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36224,
    "c": 0.18486,
    "h": 282.3
  },
  "luminance": 0.03971
}

Semantic roles & 50–950 ramp

primary
#381C99
secondary
#A8C24F
accent
#EC3CC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #381C99

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

Preview Lab → · Contrast checker → · Palette generator →

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