#381D79#381D79

#381D79 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.145 H 289.3°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#381D79
RGBrgb(56, 29, 121)
HSLhsl(258, 61%, 29%)
HSVhsv(258, 76%, 47%)
CMYKcmyk(53.7%, 76%, 0%, 52.5%)
CIE-LABlab(20.44, 36.57, -47.73)
CIE-LCHlch(20.44, 60.13, 307.46°)
OKLaboklab(33.04% 0.0482 -0.1371)
OKLCHoklch(33.04% 0.145 289.3)
XYZxyz(5.5204, 3.0997, 18.3929)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D79 #5E791D
analogous
#1D3079 #381D79 #661D79
triadic
#381D79 #79381D #1D7938
tetradic
#381D79 #791D30 #5E791D #1D7966
square
#381D79 #791D30 #5E791D #1D7966
split-complementary
#381D79 #79661D #30791D
monochromatic
#0B0619 #211148 #381D79 #4F29AA #6A3FD1

Accessibility & contrast

On white

12.96
#381D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381D79
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D79#FFFFFF#000000##FFFFFF
##381D791.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381d79;
/* rgb */ color: rgb(56, 29, 121);
/* oklch */ color: oklch(33.0% 0.145 289.3);
Tailwind
colors: {
  custom: {
    50: '#765ca1',
    500: '#381d79',
    950: '#000000',
  },
}
SCSS
$custom: #381d79;
$custom-light: #765ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#381d79",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 257.609,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33038,
    "c": 0.14535,
    "h": 289.3
  },
  "luminance": 0.031
}

Semantic roles & 50–950 ramp

primary
#381D79
secondary
#8EAD45
accent
#E443B5
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381D79

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

Preview Lab → · Contrast checker → · Palette generator →

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