#381B80#381B80

#381B80 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.156 H 287.9°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#381B80
RGBrgb(56, 27, 128)
HSLhsl(257, 65%, 30%)
HSVhsv(257, 79%, 50%)
CMYKcmyk(56.3%, 78.9%, 0%, 49.8%)
CIE-LABlab(20.76, 39.72, -51.66)
CIE-LCHlch(20.76, 65.16, 307.56°)
OKLaboklab(33.48% 0.0479 -0.1486)
OKLCHoklch(33.48% 0.156 287.9)
XYZxyz(5.9179, 3.1828, 20.7204)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B80 #63801B
analogous
#1B3080 #381B80 #6A1B80
triadic
#381B80 #80381B #1B8038
tetradic
#381B80 #801B30 #63801B #1B806A
square
#381B80 #801B30 #63801B #1B806A
split-complementary
#381B80 #806A1B #30801B
monochromatic
#0C061B #22104D #381B80 #4E26B3 #6A3FD6

Accessibility & contrast

On white

12.83
#381B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#381B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B80
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B80#FFFFFF#000000##FFFFFF
##381B801.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#1A384D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381b80;
/* rgb */ color: rgb(56, 27, 128);
/* oklch */ color: oklch(33.5% 0.156 287.9);
Tailwind
colors: {
  custom: {
    50: '#785ba6',
    500: '#381b80',
    950: '#000000',
  },
}
SCSS
$custom: #381b80;
$custom-light: #785ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#381b80",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 257.228,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33476,
    "c": 0.15615,
    "h": 287.9
  },
  "luminance": 0.03183
}

Semantic roles & 50–950 ramp

primary
#381B80
secondary
#93B443
accent
#E840B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #381B80

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

Preview Lab → · Contrast checker → · Palette generator →

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