#381D97#381D97

#381D97 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.182 H 282.5°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#381D97
RGBrgb(56, 29, 151)
HSLhsl(253, 68%, 35%)
HSVhsv(253, 81%, 59%)
CMYKcmyk(62.9%, 80.8%, 0%, 40.8%)
CIE-LABlab(23.52, 45.59, -61.48)
CIE-LCHlch(23.52, 76.54, 306.56°)
OKLaboklab(36.12% 0.0395 -0.1773)
OKLCHoklch(36.12% 0.182 282.5)
XYZxyz(7.6544, 3.9533, 29.6319)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D97 #7C971D
analogous
#1D3F97 #381D97 #751D97
triadic
#381D97 #97381D #1D9738
tetradic
#381D97 #971D3F #7C971D #1D9775
square
#381D97 #971D3F #7C971D #1D9775
split-complementary
#381D97 #97751D #3F971D
monochromatic
#120930 #251364 #381D97 #4B27CA #7051DE

Accessibility & contrast

On white

11.73
#381D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#381D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D97
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D97#FFFFFF#000000##FFFFFF
##381D971.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.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: #381d97;
/* rgb */ color: rgb(56, 29, 151);
/* oklch */ color: oklch(36.1% 0.182 282.5);
Tailwind
colors: {
  custom: {
    50: '#7c5eb7',
    500: '#381d97',
    950: '#000000',
  },
}
SCSS
$custom: #381d97;
$custom-light: #7c5eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#381d97",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 253.279,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3612,
    "c": 0.18165,
    "h": 282.5
  },
  "luminance": 0.03954
}

Semantic roles & 50–950 ramp

primary
#381D97
secondary
#A7C04F
accent
#EB3DC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381D97

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

Preview Lab → · Contrast checker → · Palette generator →

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