#381A87#381A87

#381A87 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.166 H 286.3°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#381A87
RGBrgb(56, 26, 135)
HSLhsl(257, 68%, 32%)
HSVhsv(257, 81%, 53%)
CMYKcmyk(58.5%, 80.7%, 0%, 47.1%)
CIE-LABlab(21.31, 42.28, -55.16)
CIE-LCHlch(21.31, 69.50, 307.47°)
OKLaboklab(34.08% 0.0465 -0.1588)
OKLCHoklch(34.08% 0.166 286.3)
XYZxyz(6.3721, 3.3284, 23.2237)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A87 #69871A
analogous
#1A3387 #381A87 #6F1A87
triadic
#381A87 #87381A #1A8738
tetradic
#381A87 #871A33 #69871A #1A876F
square
#381A87 #871A33 #69871A #1A876F
split-complementary
#381A87 #876F1A #33871A
monochromatic
#0D0620 #231054 #381A87 #4D24BA #6B41DA

Accessibility & contrast

On white

12.61
#381A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#381A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A87
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A87#FFFFFF#000000##FFFFFF
##381A871.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#113A50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381a87;
/* rgb */ color: rgb(56, 26, 135);
/* oklch */ color: oklch(34.1% 0.166 286.3);
Tailwind
colors: {
  custom: {
    50: '#795bab',
    500: '#381a87',
    950: '#000000',
  },
}
SCSS
$custom: #381a87;
$custom-light: #795bab;
$custom-dark: #000000;
JSON
{
  "hex": "#381a87",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 256.514,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34079,
    "c": 0.16551,
    "h": 286.3
  },
  "luminance": 0.03329
}

Semantic roles & 50–950 ramp

primary
#381A87
secondary
#99BA42
accent
#EB3DBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381A87

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

Preview Lab → · Contrast checker → · Palette generator →

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