#381A97#381A97

#381A97 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.184 H 282.9°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#381A97
RGBrgb(56, 26, 151)
HSLhsl(254, 71%, 35%)
HSVhsv(254, 83%, 59%)
CMYKcmyk(62.9%, 82.8%, 0%, 40.8%)
CIE-LABlab(23.04, 46.97, -62.25)
CIE-LCHlch(23.04, 77.98, 307.03°)
OKLaboklab(35.79% 0.0412 -0.1795)
OKLCHoklch(35.79% 0.184 282.9)
XYZxyz(7.5845, 3.8134, 29.6085)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A97 #79971A
analogous
#1A3B97 #381A97 #771A97
triadic
#381A97 #97381A #1A9738
tetradic
#381A97 #971A3B #79971A #1A9777
square
#381A97 #971A3B #79971A #1A9777
split-complementary
#381A97 #97771A #3B971A
monochromatic
#11082F #251163 #381A97 #4B23CB #6F4BE0

Accessibility & contrast

On white

11.91
#381A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#381A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A97
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A97#FFFFFF#000000##FFFFFF
##381A971.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #381a97;
/* rgb */ color: rgb(56, 26, 151);
/* oklch */ color: oklch(35.8% 0.184 282.9);
Tailwind
colors: {
  custom: {
    50: '#7c5cb7',
    500: '#381a97',
    950: '#000000',
  },
}
SCSS
$custom: #381a97;
$custom-light: #7c5cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#381a97",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 254.4,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35793,
    "c": 0.1842,
    "h": 282.9
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

primary
#381A97
secondary
#A5C24B
accent
#ED3AC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381A97

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

Preview Lab → · Contrast checker → · Palette generator →

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