#381B86#381B86

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

Color values

HEX#381B86
RGBrgb(56, 27, 134)
HSLhsl(256, 66%, 32%)
HSVhsv(256, 80%, 53%)
CMYKcmyk(58.2%, 79.9%, 0%, 47.5%)
CIE-LABlab(21.38, 41.50, -54.43)
CIE-LCHlch(21.38, 68.45, 307.33°)
OKLaboklab(34.09% 0.0461 -0.1567)
OKLCHoklch(34.09% 0.163 286.4)
XYZxyz(6.3246, 3.3455, 22.8621)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B86 #69861B
analogous
#1B3386 #381B86 #6E1B86
triadic
#381B86 #86381B #1B8638
tetradic
#381B86 #861B33 #69861B #1B866E
square
#381B86 #861B33 #69861B #1B866E
split-complementary
#381B86 #866E1B #33861B
monochromatic
#0D0620 #231153 #381B86 #4D25B9 #6B42D9

Accessibility & contrast

On white

12.58
#381B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381B86
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B86#FFFFFF#000000##FFFFFF
##381B861.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#123A50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381b86;
/* rgb */ color: rgb(56, 27, 134);
/* oklch */ color: oklch(34.1% 0.163 286.4);
Tailwind
colors: {
  custom: {
    50: '#795baa',
    500: '#381b86',
    950: '#000000',
  },
}
SCSS
$custom: #381b86;
$custom-light: #795baa;
$custom-dark: #000000;
JSON
{
  "hex": "#381b86",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 256.262,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34092,
    "c": 0.16336,
    "h": 286.4
  },
  "luminance": 0.03346
}

Semantic roles & 50–950 ramp

primary
#381B86
secondary
#99B944
accent
#E93EBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381B86

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

Preview Lab → · Contrast checker → · Palette generator →

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