#381D80#381D80

#381D80 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.154 H 287.5°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#381D80
RGBrgb(56, 29, 128)
HSLhsl(256, 63%, 31%)
HSVhsv(256, 77%, 50%)
CMYKcmyk(56.3%, 77.3%, 0%, 49.8%)
CIE-LABlab(21.12, 38.69, -51.06)
CIE-LCHlch(21.12, 64.06, 307.15°)
OKLaboklab(33.73% 0.0463 -0.1469)
OKLCHoklch(33.73% 0.154 287.5)
XYZxyz(5.9654, 3.2777, 20.7362)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D80 #65801D
analogous
#1D3380 #381D80 #691D80
triadic
#381D80 #80381D #1D8038
tetradic
#381D80 #801D33 #65801D #1D8069
square
#381D80 #801D33 #65801D #1D8069
split-complementary
#381D80 #80691D #33801D
monochromatic
#0C061C #22124E #381D80 #4E28B2 #6B43D4

Accessibility & contrast

On white

12.68
#381D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381D80
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D80#FFFFFF#000000##FFFFFF
##381D801.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#1A384D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381d80;
/* rgb */ color: rgb(56, 29, 128);
/* oklch */ color: oklch(33.7% 0.154 287.5);
Tailwind
colors: {
  custom: {
    50: '#775ca6',
    500: '#381d80',
    950: '#000000',
  },
}
SCSS
$custom: #381d80;
$custom-light: #775ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#381d80",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 128
  },
  "hsl": {
    "h": 256.364,
    "s": 63.057,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33729,
    "c": 0.15402,
    "h": 287.5
  },
  "luminance": 0.03278
}

Semantic roles & 50–950 ramp

primary
#381D80
secondary
#95B345
accent
#E642B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #381D80

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

Preview Lab → · Contrast checker → · Palette generator →

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