#381B78#381B78

#381B78 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.146 H 290.0°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#381B78
RGBrgb(56, 27, 120)
HSLhsl(259, 63%, 29%)
HSVhsv(259, 78%, 47%)
CMYKcmyk(53.3%, 77.5%, 0%, 52.9%)
CIE-LABlab(19.97, 37.33, -47.87)
CIE-LCHlch(19.97, 60.71, 307.95°)
OKLaboklab(32.67% 0.0502 -0.1375)
OKLCHoklch(32.67% 0.146 290)
XYZxyz(5.4120, 2.9805, 18.0558)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B78 #5B781B
analogous
#1B2D78 #381B78 #671B78
triadic
#381B78 #78381B #1B7838
tetradic
#381B78 #781B2D #5B781B #1B7867
square
#381B78 #781B2D #5B781B #1B7867
split-complementary
#381B78 #78671B #2D781B
monochromatic
#0C0619 #211046 #381B78 #4F26AA #6A3BD3

Accessibility & contrast

On white

13.16
#381B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#381B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B78
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B78#FFFFFF#000000##FFFFFF
##381B781.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381b78;
/* rgb */ color: rgb(56, 27, 120);
/* oklch */ color: oklch(32.7% 0.146 290.0);
Tailwind
colors: {
  custom: {
    50: '#765ba0',
    500: '#381b78',
    950: '#000000',
  },
}
SCSS
$custom: #381b78;
$custom-light: #765ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#381b78",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 258.71,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32675,
    "c": 0.1464,
    "h": 290
  },
  "luminance": 0.02981
}

Semantic roles & 50–950 ramp

primary
#381B78
secondary
#8BAC43
accent
#E641B3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #381B78

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

Preview Lab → · Contrast checker → · Palette generator →

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