#381C87#381C87

#381C87 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.164 H 286.0°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#381C87
RGBrgb(56, 28, 135)
HSLhsl(256, 66%, 32%)
HSVhsv(256, 79%, 53%)
CMYKcmyk(58.5%, 79.3%, 0%, 47.1%)
CIE-LABlab(21.65, 41.31, -54.60)
CIE-LCHlch(21.65, 68.47, 307.11°)
OKLaboklab(34.32% 0.0451 -0.1572)
OKLCHoklch(34.32% 0.164 286)
XYZxyz(6.4180, 3.4202, 23.2389)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C87 #6B871C
analogous
#1C3687 #381C87 #6E1C87
triadic
#381C87 #87381C #1C8738
tetradic
#381C87 #871C36 #6B871C #1C876E
square
#381C87 #871C36 #6B871C #1C876E
split-complementary
#381C87 #876E1C #36871C
monochromatic
#0E0722 #231154 #381C87 #4D27BA #6C45D8

Accessibility & contrast

On white

12.47
#381C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#381C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C87
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C87#FFFFFF#000000##FFFFFF
##381C871.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#113B51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #381c87;
/* rgb */ color: rgb(56, 28, 135);
/* oklch */ color: oklch(34.3% 0.164 286.0);
Tailwind
colors: {
  custom: {
    50: '#795cab',
    500: '#381c87',
    950: '#000000',
  },
}
SCSS
$custom: #381c87;
$custom-light: #795cab;
$custom-dark: #000000;
JSON
{
  "hex": "#381c87",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 255.701,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34316,
    "c": 0.16357,
    "h": 286
  },
  "luminance": 0.03421
}

Semantic roles & 50–950 ramp

primary
#381C87
secondary
#9BBA45
accent
#E93FBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381C87

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

Preview Lab → · Contrast checker → · Palette generator →

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