#381A79#381A79

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

Color values

HEX#381A79
RGBrgb(56, 26, 121)
HSLhsl(259, 65%, 29%)
HSVhsv(259, 79%, 47%)
CMYKcmyk(53.7%, 78.5%, 0%, 52.5%)
CIE-LABlab(19.88, 38.15, -48.65)
CIE-LCHlch(19.88, 61.82, 308.10°)
OKLaboklab(32.65% 0.0508 -0.1398)
OKLCHoklch(32.65% 0.149 290)
XYZxyz(5.4505, 2.9598, 18.3696)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A79 #5B791A
analogous
#1A2C79 #381A79 #681A79
triadic
#381A79 #79381A #1A7938
tetradic
#381A79 #791A2C #5B791A #1A7968
square
#381A79 #791A2C #5B791A #1A7968
split-complementary
#381A79 #79681A #2C791A
monochromatic
#0C0519 #210F47 #381A79 #4F25AB #6A39D4

Accessibility & contrast

On white

13.19
#381A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381A79
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A79#FFFFFF#000000##FFFFFF
##381A791.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#203448
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381a79;
/* rgb */ color: rgb(56, 26, 121);
/* oklch */ color: oklch(32.6% 0.149 290.0);
Tailwind
colors: {
  custom: {
    50: '#765aa1',
    500: '#381a79',
    950: '#000000',
  },
}
SCSS
$custom: #381a79;
$custom-light: #765aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#381a79",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 258.947,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32646,
    "c": 0.14873,
    "h": 290
  },
  "luminance": 0.0296
}

Semantic roles & 50–950 ramp

primary
#381A79
secondary
#8BAD41
accent
#E840B3
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381A79

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

Preview Lab → · Contrast checker → · Palette generator →

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