#381A78#381A78

#381A78 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.148 H 290.3°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#381A78
RGBrgb(56, 26, 120)
HSLhsl(259, 64%, 29%)
HSVhsv(259, 78%, 47%)
CMYKcmyk(53.3%, 78.3%, 0%, 52.9%)
CIE-LABlab(19.78, 37.85, -48.17)
CIE-LCHlch(19.78, 61.26, 308.16°)
OKLaboklab(32.55% 0.0511 -0.1384)
OKLCHoklch(32.55% 0.148 290.3)
XYZxyz(5.3895, 2.9354, 18.0483)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A78 #5A781A
analogous
#1A2B78 #381A78 #671A78
triadic
#381A78 #78381A #1A7838
tetradic
#381A78 #781A2B #5A781A #1A7867
square
#381A78 #781A2B #5A781A #1A7867
split-complementary
#381A78 #78671A #2B781A
monochromatic
#0C0519 #210F46 #381A78 #4F25AA #6A38D4

Accessibility & contrast

On white

13.23
#381A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#381A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A78
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A78#FFFFFF#000000##FFFFFF
##381A781.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#213448
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381a78;
/* rgb */ color: rgb(56, 26, 120);
/* oklch */ color: oklch(32.5% 0.148 290.3);
Tailwind
colors: {
  custom: {
    50: '#765aa0',
    500: '#381a78',
    950: '#000000',
  },
}
SCSS
$custom: #381a78;
$custom-light: #765aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#381a78",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 259.149,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32546,
    "c": 0.14752,
    "h": 290.3
  },
  "luminance": 0.02936
}

Semantic roles & 50–950 ramp

primary
#381A78
secondary
#8AAC41
accent
#E740B2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #381A78

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

Preview Lab → · Contrast checker → · Palette generator →

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