#381B85#381B85

#381B85 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.162 H 286.6°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#381B85
RGBrgb(56, 27, 133)
HSLhsl(256, 66%, 31%)
HSVhsv(256, 80%, 52%)
CMYKcmyk(57.9%, 79.7%, 0%, 47.8%)
CIE-LABlab(21.27, 41.21, -53.97)
CIE-LCHlch(21.27, 67.90, 307.36°)
OKLaboklab(33.99% 0.0464 -0.1554)
OKLCHoklch(33.99% 0.162 286.6)
XYZxyz(6.2552, 3.3177, 22.4965)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B85 #68851B
analogous
#1B3385 #381B85 #6D1B85
triadic
#381B85 #85381B #1B8538
tetradic
#381B85 #851B33 #68851B #1B856D
square
#381B85 #851B33 #68851B #1B856D
split-complementary
#381B85 #856D1B #33851B
monochromatic
#0D061F #231152 #381B85 #4D25B8 #6B42D9

Accessibility & contrast

On white

12.62
#381B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#381B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B85
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B85#FFFFFF#000000##FFFFFF
##381B851.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#143A4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381b85;
/* rgb */ color: rgb(56, 27, 133);
/* oklch */ color: oklch(34.0% 0.162 286.6);
Tailwind
colors: {
  custom: {
    50: '#785baa',
    500: '#381b85',
    950: '#000000',
  },
}
SCSS
$custom: #381b85;
$custom-light: #785baa;
$custom-dark: #000000;
JSON
{
  "hex": "#381b85",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 256.415,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33988,
    "c": 0.16216,
    "h": 286.6
  },
  "luminance": 0.03318
}

Semantic roles & 50–950 ramp

primary
#381B85
secondary
#98B844
accent
#E93FBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381B85

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

Preview Lab → · Contrast checker → · Palette generator →

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