#381D78#381D78

#381D78 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.144 H 289.6°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#381D78
RGBrgb(56, 29, 120)
HSLhsl(258, 61%, 29%)
HSVhsv(258, 76%, 47%)
CMYKcmyk(53.3%, 75.8%, 0%, 52.9%)
CIE-LABlab(20.34, 36.27, -47.25)
CIE-LCHlch(20.34, 59.56, 307.51°)
OKLaboklab(32.94% 0.0484 -0.1357)
OKLCHoklch(32.94% 0.144 289.6)
XYZxyz(5.4594, 3.0753, 18.0716)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D78 #5D781D
analogous
#1D3078 #381D78 #661D78
triadic
#381D78 #78381D #1D7838
tetradic
#381D78 #781D30 #5D781D #1D7866
square
#381D78 #781D30 #5D781D #1D7866
split-complementary
#381D78 #78661D #30781D
monochromatic
#0C0619 #211147 #381D78 #4F29A9 #6A3FD1

Accessibility & contrast

On white

13.00
#381D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#381D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D78
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D78#FFFFFF#000000##FFFFFF
##381D781.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#213549
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381d78;
/* rgb */ color: rgb(56, 29, 120);
/* oklch */ color: oklch(32.9% 0.144 289.6);
Tailwind
colors: {
  custom: {
    50: '#765ca0',
    500: '#381d78',
    950: '#000000',
  },
}
SCSS
$custom: #381d78;
$custom-light: #765ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#381d78",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 257.802,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32941,
    "c": 0.1441,
    "h": 289.6
  },
  "luminance": 0.03076
}

Semantic roles & 50–950 ramp

primary
#381D78
secondary
#8DAC45
accent
#E444B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #381D78

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

Preview Lab → · Contrast checker → · Palette generator →

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