#381E82#381E82

#381E82 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.155 H 286.8°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#381E82
RGBrgb(56, 30, 130)
HSLhsl(256, 63%, 31%)
HSVhsv(256, 77%, 51%)
CMYKcmyk(56.9%, 76.9%, 0%, 49%)
CIE-LABlab(21.51, 38.77, -51.69)
CIE-LCHlch(21.51, 64.61, 306.87°)
OKLaboklab(34.06% 0.045 -0.1487)
OKLCHoklch(34.06% 0.155 286.8)
XYZxyz(6.1232, 3.3807, 21.4446)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E82 #68821E
analogous
#1E3682 #381E82 #6A1E82
triadic
#381E82 #82381E #1E8238
tetradic
#381E82 #821E36 #68821E #1E826A
square
#381E82 #821E36 #68821E #1E826A
split-complementary
#381E82 #826A1E #36821E
monochromatic
#0D071F #231350 #381E82 #4D29B4 #6B46D4

Accessibility & contrast

On white

12.53
#381E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#381E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E82
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E82#FFFFFF#000000##FFFFFF
##381E821.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#173A4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #381e82;
/* rgb */ color: rgb(56, 30, 130);
/* oklch */ color: oklch(34.1% 0.155 286.8);
Tailwind
colors: {
  custom: {
    50: '#785da7',
    500: '#381e82',
    950: '#000000',
  },
}
SCSS
$custom: #381e82;
$custom-light: #785da7;
$custom-dark: #000000;
JSON
{
  "hex": "#381e82",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 255.6,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34061,
    "c": 0.1554,
    "h": 286.8
  },
  "luminance": 0.03381
}

Semantic roles & 50–950 ramp

primary
#381E82
secondary
#98B547
accent
#E642BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381E82

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

Preview Lab → · Contrast checker → · Palette generator →

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