#381B87#381B87

#381B87 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.165 H 286.2°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#381B87
RGBrgb(56, 27, 135)
HSLhsl(256, 67%, 32%)
HSVhsv(256, 80%, 53%)
CMYKcmyk(58.5%, 80%, 0%, 47.1%)
CIE-LABlab(21.48, 41.80, -54.89)
CIE-LCHlch(21.48, 68.99, 307.29°)
OKLaboklab(34.2% 0.0458 -0.1581)
OKLCHoklch(34.2% 0.165 286.2)
XYZxyz(6.3947, 3.3735, 23.2312)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B87 #6A871B
analogous
#1B3487 #381B87 #6E1B87
triadic
#381B87 #87381B #1B8738
tetradic
#381B87 #871B34 #6A871B #1B876E
square
#381B87 #871B34 #6A871B #1B876E
split-complementary
#381B87 #876E1B #34871B
monochromatic
#0E0721 #231154 #381B87 #4D25BA #6B43D9

Accessibility & contrast

On white

12.54
#381B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381B87
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B87#FFFFFF#000000##FFFFFF
##381B871.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381b87;
/* rgb */ color: rgb(56, 27, 135);
/* oklch */ color: oklch(34.2% 0.165 286.2);
Tailwind
colors: {
  custom: {
    50: '#795cab',
    500: '#381b87',
    950: '#000000',
  },
}
SCSS
$custom: #381b87;
$custom-light: #795cab;
$custom-dark: #000000;
JSON
{
  "hex": "#381b87",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 256.111,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34196,
    "c": 0.16456,
    "h": 286.2
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

primary
#381B87
secondary
#9ABA44
accent
#EA3EBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381B87

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

Preview Lab → · Contrast checker → · Palette generator →

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