#381C9B#381C9B

#381C9B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.187 H 281.9°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#381C9B
RGBrgb(56, 28, 155)
HSLhsl(253, 69%, 36%)
HSVhsv(253, 82%, 61%)
CMYKcmyk(63.9%, 81.9%, 0%, 39.2%)
CIE-LABlab(23.79, 47.24, -63.47)
CIE-LCHlch(23.79, 79.12, 306.66°)
OKLaboklab(36.44% 0.0388 -0.1831)
OKLCHoklch(36.44% 0.187 281.9)
XYZxyz(7.9607, 4.0372, 31.3638)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C9B #7F9B1C
analogous
#1C409B #381C9B #771C9B
triadic
#381C9B #9B381C #1C9B38
tetradic
#381C9B #9B1C40 #7F9B1C #1C9B77
square
#381C9B #9B1C40 #7F9B1C #1C9B77
split-complementary
#381C9B #9B771C #409B1C
monochromatic
#130933 #251367 #381C9B #4B25CF #7152E0

Accessibility & contrast

On white

11.62
#381C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#381C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C9B
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C9B#FFFFFF#000000##FFFFFF
##381C9B1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003499
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #381c9b;
/* rgb */ color: rgb(56, 28, 155);
/* oklch */ color: oklch(36.4% 0.187 281.9);
Tailwind
colors: {
  custom: {
    50: '#7d5dba',
    500: '#381c9b',
    950: '#000000',
  },
}
SCSS
$custom: #381c9b;
$custom-light: #7d5dba;
$custom-dark: #000000;
JSON
{
  "hex": "#381c9b",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 155
  },
  "hsl": {
    "h": 253.228,
    "s": 69.399,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36442,
    "c": 0.18718,
    "h": 281.9
  },
  "luminance": 0.04038
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #381C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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