#381C96#381C96

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

Color values

HEX#381C96
RGBrgb(56, 28, 150)
HSLhsl(254, 69%, 35%)
HSVhsv(254, 81%, 59%)
CMYKcmyk(62.7%, 81.3%, 0%, 41.2%)
CIE-LABlab(23.25, 45.77, -61.31)
CIE-LCHlch(23.25, 76.50, 306.74°)
OKLaboklab(35.9% 0.0404 -0.1768)
OKLCHoklch(35.9% 0.181 282.9)
XYZxyz(7.5495, 3.8727, 29.1979)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C96 #7A961C
analogous
#1C3D96 #381C96 #751C96
triadic
#381C96 #96381C #1C9638
tetradic
#381C96 #961C3D #7A961C #1C9675
square
#381C96 #961C3D #7A961C #1C9675
split-complementary
#381C96 #96751C #3D961C
monochromatic
#11092F #251262 #381C96 #4B26CA #6F4EDE

Accessibility & contrast

On white

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

On black

1.77
#381C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##381C96#FFFFFF#000000##FFFFFF
##381C961.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #381c96;
/* rgb */ color: rgb(56, 28, 150);
/* oklch */ color: oklch(35.9% 0.181 282.9);
Tailwind
colors: {
  custom: {
    50: '#7c5db6',
    500: '#381c96',
    950: '#000000',
  },
}
SCSS
$custom: #381c96;
$custom-light: #7c5db6;
$custom-dark: #000000;
JSON
{
  "hex": "#381c96",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 150
  },
  "hsl": {
    "h": 253.77,
    "s": 68.539,
    "l": 34.902
  },
  "oklch": {
    "l": 0.359,
    "c": 0.18135,
    "h": 282.9
  },
  "luminance": 0.03873
}

Semantic roles & 50–950 ramp

primary
#381C96
secondary
#A6C14D
accent
#EB3CC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381C96

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

Preview Lab → · Contrast checker → · Palette generator →

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