#381D87#381D87

#381D87 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.163 H 285.8°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#381D87
RGBrgb(56, 29, 135)
HSLhsl(255, 65%, 32%)
HSVhsv(255, 79%, 53%)
CMYKcmyk(58.5%, 78.5%, 0%, 47.1%)
CIE-LABlab(21.83, 40.80, -54.31)
CIE-LCHlch(21.83, 67.93, 306.91°)
OKLaboklab(34.44% 0.0443 -0.1564)
OKLCHoklch(34.44% 0.163 285.8)
XYZxyz(6.4421, 3.4684, 23.2470)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D87 #6C871D
analogous
#1D3787 #381D87 #6D1D87
triadic
#381D87 #87381D #1D8738
tetradic
#381D87 #871D37 #6C871D #1D876D
square
#381D87 #871D37 #6C871D #1D876D
split-complementary
#381D87 #876D1D #37871D
monochromatic
#0E0722 #231255 #381D87 #4D28B9 #6C47D7

Accessibility & contrast

On white

12.40
#381D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#381D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D87
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D87#FFFFFF#000000##FFFFFF
##381D871.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.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: #381d87;
/* rgb */ color: rgb(56, 29, 135);
/* oklch */ color: oklch(34.4% 0.163 285.8);
Tailwind
colors: {
  custom: {
    50: '#795dab',
    500: '#381d87',
    950: '#000000',
  },
}
SCSS
$custom: #381d87;
$custom-light: #795dab;
$custom-dark: #000000;
JSON
{
  "hex": "#381d87",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 255.283,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34439,
    "c": 0.16256,
    "h": 285.8
  },
  "luminance": 0.03469
}

Semantic roles & 50–950 ramp

primary
#381D87
secondary
#9CB946
accent
#E840BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381D87

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

Preview Lab → · Contrast checker → · Palette generator →

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