#381E97#381E97

#381E97 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.181 H 282.4°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#381E97
RGBrgb(56, 30, 151)
HSLhsl(253, 67%, 35%)
HSVhsv(253, 80%, 59%)
CMYKcmyk(62.9%, 80.1%, 0%, 40.8%)
CIE-LABlab(23.68, 45.11, -61.20)
CIE-LCHlch(23.68, 76.03, 306.39°)
OKLaboklab(36.24% 0.0389 -0.1765)
OKLCHoklch(36.24% 0.181 282.4)
XYZxyz(7.6793, 4.0031, 29.6402)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E97 #7D971E
analogous
#1E4097 #381E97 #751E97
triadic
#381E97 #97381E #1E9738
tetradic
#381E97 #971E40 #7D971E #1E9775
square
#381E97 #971E40 #7D971E #1E9775
split-complementary
#381E97 #97751E #40971E
monochromatic
#120A31 #251464 #381E97 #4B28CA #7053DD

Accessibility & contrast

On white

11.66
#381E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#381E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E97
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E97#FFFFFF#000000##FFFFFF
##381E971.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #381e97;
/* rgb */ color: rgb(56, 30, 151);
/* oklch */ color: oklch(36.2% 0.181 282.4);
Tailwind
colors: {
  custom: {
    50: '#7c5eb7',
    500: '#381e97',
    950: '#000000',
  },
}
SCSS
$custom: #381e97;
$custom-light: #7c5eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#381e97",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 252.893,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36235,
    "c": 0.18076,
    "h": 282.4
  },
  "luminance": 0.04004
}

Semantic roles & 50–950 ramp

primary
#381E97
secondary
#A8C051
accent
#EA3EC5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #381E97

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

Preview Lab → · Contrast checker → · Palette generator →

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