#381B9B#381B9B

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

Color values

HEX#381B9B
RGBrgb(56, 27, 155)
HSLhsl(254, 70%, 36%)
HSVhsv(254, 83%, 61%)
CMYKcmyk(63.9%, 82.6%, 0%, 39.2%)
CIE-LABlab(23.64, 47.69, -63.73)
CIE-LCHlch(23.64, 79.59, 306.81°)
OKLaboklab(36.34% 0.0393 -0.1839)
OKLCHoklch(36.34% 0.188 282.1)
XYZxyz(7.9374, 3.9906, 31.3560)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B9B #7E9B1B
analogous
#1B3E9B #381B9B #781B9B
triadic
#381B9B #9B381B #1B9B38
tetradic
#381B9B #9B1B3E #7E9B1B #1B9B78
square
#381B9B #9B1B3E #7E9B1B #1B9B78
split-complementary
#381B9B #9B781B #3E9B1B
monochromatic
#120933 #251267 #381B9B #4B24CF #7150E0

Accessibility & contrast

On white

11.68
#381B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381B9B
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B9B#FFFFFF#000000##FFFFFF
##381B9B1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381b9b;
/* rgb */ color: rgb(56, 27, 155);
/* oklch */ color: oklch(36.3% 0.188 282.1);
Tailwind
colors: {
  custom: {
    50: '#7d5dba',
    500: '#381b9b',
    950: '#000000',
  },
}
SCSS
$custom: #381b9b;
$custom-light: #7d5dba;
$custom-dark: #000000;
JSON
{
  "hex": "#381b9b",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 155
  },
  "hsl": {
    "h": 253.594,
    "s": 70.33,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36335,
    "c": 0.188,
    "h": 282.1
  },
  "luminance": 0.03991
}

Semantic roles & 50–950 ramp

primary
#381B9B
secondary
#A9C34F
accent
#ED3BC5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #381B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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