#381B82#381B82

#381B82 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.159 H 287.4°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#381B82
RGBrgb(56, 27, 130)
HSLhsl(257, 66%, 31%)
HSVhsv(257, 79%, 51%)
CMYKcmyk(56.9%, 79.2%, 0%, 49%)
CIE-LABlab(20.97, 40.31, -52.59)
CIE-LCHlch(20.97, 66.26, 307.47°)
OKLaboklab(33.68% 0.0473 -0.1513)
OKLCHoklch(33.68% 0.159 287.4)
XYZxyz(6.0509, 3.2360, 21.4205)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B82 #65821B
analogous
#1B3182 #381B82 #6B1B82
triadic
#381B82 #82381B #1B8238
tetradic
#381B82 #821B31 #65821B #1B826B
square
#381B82 #821B31 #65821B #1B826B
split-complementary
#381B82 #826B1B #31821B
monochromatic
#0C061D #22104F #381B82 #4E26B5 #6B40D7

Accessibility & contrast

On white

12.75
#381B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#381B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B82
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B82#FFFFFF#000000##FFFFFF
##381B821.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#18384E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381b82;
/* rgb */ color: rgb(56, 27, 130);
/* oklch */ color: oklch(33.7% 0.159 287.4);
Tailwind
colors: {
  custom: {
    50: '#785ba7',
    500: '#381b82',
    950: '#000000',
  },
}
SCSS
$custom: #381b82;
$custom-light: #785ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#381b82",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 256.893,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3368,
    "c": 0.15857,
    "h": 287.4
  },
  "luminance": 0.03236
}

Semantic roles & 50–950 ramp

primary
#381B82
secondary
#95B643
accent
#E93FB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381B82

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

Preview Lab → · Contrast checker → · Palette generator →

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