#381B9A#381B9A

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

Color values

HEX#381B9A
RGBrgb(56, 27, 154)
HSLhsl(254, 70%, 35%)
HSVhsv(254, 82%, 60%)
CMYKcmyk(63.6%, 82.5%, 0%, 39.6%)
CIE-LABlab(23.53, 47.39, -63.30)
CIE-LCHlch(23.53, 79.08, 306.82°)
OKLaboklab(36.23% 0.0396 -0.1826)
OKLCHoklch(36.23% 0.187 282.2)
XYZxyz(7.8537, 3.9571, 30.9155)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B9A #7D9A1B
analogous
#1B3D9A #381B9A #771B9A
triadic
#381B9A #9A381B #1B9A38
tetradic
#381B9A #9A1B3D #7D9A1B #1B9A77
square
#381B9A #9A1B3D #7D9A1B #1B9A77
split-complementary
#381B9A #9A771B #3D9A1B
monochromatic
#120932 #251266 #381B9A #4B24CE #704FE0

Accessibility & contrast

On white

11.72
#381B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381B9A
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B9A#FFFFFF#000000##FFFFFF
##381B9A1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381b9a;
/* rgb */ color: rgb(56, 27, 154);
/* oklch */ color: oklch(36.2% 0.187 282.2);
Tailwind
colors: {
  custom: {
    50: '#7c5db9',
    500: '#381b9a',
    950: '#000000',
  },
}
SCSS
$custom: #381b9a;
$custom-light: #7c5db9;
$custom-dark: #000000;
JSON
{
  "hex": "#381b9a",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 154
  },
  "hsl": {
    "h": 253.701,
    "s": 70.166,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36226,
    "c": 0.18685,
    "h": 282.2
  },
  "luminance": 0.03958
}

Semantic roles & 50–950 ramp

primary
#381B9A
secondary
#A8C34E
accent
#ED3BC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #381B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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