#381C9A#381C9A

#381C9A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.186 H 282.1°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#381C9A
RGBrgb(56, 28, 154)
HSLhsl(253, 69%, 36%)
HSVhsv(253, 82%, 60%)
CMYKcmyk(63.6%, 81.8%, 0%, 39.6%)
CIE-LABlab(23.68, 46.94, -63.04)
CIE-LCHlch(23.68, 78.60, 306.67°)
OKLaboklab(36.33% 0.0391 -0.1819)
OKLCHoklch(36.33% 0.186 282.1)
XYZxyz(7.8771, 4.0038, 30.9233)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C9A #7E9A1C
analogous
#1C3F9A #381C9A #771C9A
triadic
#381C9A #9A381C #1C9A38
tetradic
#381C9A #9A1C3F #7E9A1C #1C9A77
square
#381C9A #9A1C3F #7E9A1C #1C9A77
split-complementary
#381C9A #9A771C #3F9A1C
monochromatic
#120932 #251366 #381C9A #4B25CE #7151DF

Accessibility & contrast

On white

11.66
#381C9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#381C9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C9A
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C9A#FFFFFF#000000##FFFFFF
##381C9A1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9D
Deuteranopia (green-blind)
#003498
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #381c9a;
/* rgb */ color: rgb(56, 28, 154);
/* oklch */ color: oklch(36.3% 0.186 282.1);
Tailwind
colors: {
  custom: {
    50: '#7c5db9',
    500: '#381c9a',
    950: '#000000',
  },
}
SCSS
$custom: #381c9a;
$custom-light: #7c5db9;
$custom-dark: #000000;
JSON
{
  "hex": "#381c9a",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 154
  },
  "hsl": {
    "h": 253.333,
    "s": 69.231,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36333,
    "c": 0.18602,
    "h": 282.1
  },
  "luminance": 0.04004
}

Semantic roles & 50–950 ramp

primary
#381C9A
secondary
#A9C250
accent
#EC3CC5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #381C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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