#381E87#381E87

#381E87 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.162 H 285.7°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#381E87
RGBrgb(56, 30, 135)
HSLhsl(255, 64%, 32%)
HSVhsv(255, 78%, 53%)
CMYKcmyk(58.5%, 77.8%, 0%, 47.1%)
CIE-LABlab(22.01, 40.29, -54.02)
CIE-LCHlch(22.01, 67.38, 306.72°)
OKLaboklab(34.57% 0.0436 -0.1555)
OKLCHoklch(34.57% 0.162 285.7)
XYZxyz(6.4670, 3.5182, 23.2553)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E87 #6D871E
analogous
#1E3987 #381E87 #6C1E87
triadic
#381E87 #87381E #1E8738
tetradic
#381E87 #871E39 #6D871E #1E876C
square
#381E87 #871E39 #6D871E #1E876C
split-complementary
#381E87 #876C1E #39871E
monochromatic
#0E0823 #231355 #381E87 #4D29B9 #6C49D7

Accessibility & contrast

On white

12.33
#381E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#381E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E87
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E87#FFFFFF#000000##FFFFFF
##381E871.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#103C51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381e87;
/* rgb */ color: rgb(56, 30, 135);
/* oklch */ color: oklch(34.6% 0.162 285.7);
Tailwind
colors: {
  custom: {
    50: '#795dab',
    500: '#381e87',
    950: '#000000',
  },
}
SCSS
$custom: #381e87;
$custom-light: #795dab;
$custom-dark: #000000;
JSON
{
  "hex": "#381e87",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 254.857,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34565,
    "c": 0.16153,
    "h": 285.7
  },
  "luminance": 0.03519
}

Semantic roles & 50–950 ramp

primary
#381E87
secondary
#9DB948
accent
#E741BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381E87

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

Preview Lab → · Contrast checker → · Palette generator →

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