#381C79#381C79

#381C79 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.146 H 289.6°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#381C79
RGBrgb(56, 28, 121)
HSLhsl(258, 62%, 29%)
HSVhsv(258, 77%, 47%)
CMYKcmyk(53.7%, 76.9%, 0%, 52.5%)
CIE-LABlab(20.25, 37.11, -48.04)
CIE-LCHlch(20.25, 60.70, 307.68°)
OKLaboklab(32.9% 0.0491 -0.138)
OKLCHoklch(32.9% 0.147 289.6)
XYZxyz(5.4963, 3.0515, 18.3848)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C79 #5D791C
analogous
#1C2E79 #381C79 #671C79
triadic
#381C79 #79381C #1C7938
tetradic
#381C79 #791C2E #5D791C #1C7967
square
#381C79 #791C2E #5D791C #1C7967
split-complementary
#381C79 #79671C #2E791C
monochromatic
#0C0619 #211047 #381C79 #4F28AB #6A3DD2

Accessibility & contrast

On white

13.04
#381C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#381C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C79
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C79#FFFFFF#000000##FFFFFF
##381C791.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381c79;
/* rgb */ color: rgb(56, 28, 121);
/* oklch */ color: oklch(32.9% 0.146 289.6);
Tailwind
colors: {
  custom: {
    50: '#765ba1',
    500: '#381c79',
    950: '#000000',
  },
}
SCSS
$custom: #381c79;
$custom-light: #765ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#381c79",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 258.065,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32904,
    "c": 0.1465,
    "h": 289.6
  },
  "luminance": 0.03052
}

Semantic roles & 50–950 ramp

primary
#381C79
secondary
#8DAD44
accent
#E542B4
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381C79

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

Preview Lab → · Contrast checker → · Palette generator →

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