#381E79#381E79

#381E79 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.144 H 289.1°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#381E79
RGBrgb(56, 30, 121)
HSLhsl(257, 60%, 30%)
HSVhsv(257, 75%, 47%)
CMYKcmyk(53.7%, 75.2%, 0%, 52.5%)
CIE-LABlab(20.63, 36.02, -47.42)
CIE-LCHlch(20.63, 59.55, 307.23°)
OKLaboklab(33.17% 0.0472 -0.1362)
OKLCHoklch(33.17% 0.144 289.1)
XYZxyz(5.5453, 3.1495, 18.4012)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E79 #5F791E
analogous
#1E3279 #381E79 #661E79
triadic
#381E79 #79381E #1E7938
tetradic
#381E79 #791E32 #5F791E #1E7966
square
#381E79 #791E32 #5F791E #1E7966
split-complementary
#381E79 #79661E #32791E
monochromatic
#0B0619 #211248 #381E79 #4F2AAA #6A41D0

Accessibility & contrast

On white

12.88
#381E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#381E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E79
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E79#FFFFFF#000000##FFFFFF
##381E791.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#203649
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381e79;
/* rgb */ color: rgb(56, 30, 121);
/* oklch */ color: oklch(33.2% 0.144 289.1);
Tailwind
colors: {
  custom: {
    50: '#765ca1',
    500: '#381e79',
    950: '#000000',
  },
}
SCSS
$custom: #381e79;
$custom-light: #765ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#381e79",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 121
  },
  "hsl": {
    "h": 257.143,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33175,
    "c": 0.14418,
    "h": 289.1
  },
  "luminance": 0.0315
}

Semantic roles & 50–950 ramp

primary
#381E79
secondary
#8FAD46
accent
#E344B6
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381E79

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

Preview Lab → · Contrast checker → · Palette generator →

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