#381B93#381B93

#381B93 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.179 H 283.6°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#381B93
RGBrgb(56, 27, 147)
HSLhsl(255, 69%, 34%)
HSVhsv(255, 82%, 58%)
CMYKcmyk(61.9%, 81.6%, 0%, 42.4%)
CIE-LABlab(22.76, 45.35, -60.26)
CIE-LCHlch(22.76, 75.41, 306.96°)
OKLaboklab(35.47% 0.0419 -0.1737)
OKLCHoklch(35.47% 0.179 283.6)
XYZxyz(7.2877, 3.7307, 27.9342)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B93 #76931B
analogous
#1B3A93 #381B93 #741B93
triadic
#381B93 #93381B #1B9338
tetradic
#381B93 #931B3A #76931B #1B9374
square
#381B93 #931B3A #76931B #1B9374
split-complementary
#381B93 #93741B #3A931B
monochromatic
#11082C #24125F #381B93 #4C24C7 #6E4BDE

Accessibility & contrast

On white

12.03
#381B93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#381B93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B93
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B93#FFFFFF#000000##FFFFFF
##381B931.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#003291
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381b93;
/* rgb */ color: rgb(56, 27, 147);
/* oklch */ color: oklch(35.5% 0.179 283.6);
Tailwind
colors: {
  custom: {
    50: '#7b5cb4',
    500: '#381b93',
    950: '#000000',
  },
}
SCSS
$custom: #381b93;
$custom-light: #7b5cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#381b93",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 147
  },
  "hsl": {
    "h": 254.5,
    "s": 68.966,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35467,
    "c": 0.17872,
    "h": 283.6
  },
  "luminance": 0.03731
}

Semantic roles & 50–950 ramp

primary
#381B93
secondary
#A3C04A
accent
#EC3CC1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381B93

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

Preview Lab → · Contrast checker → · Palette generator →

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