#381C97#381C97

#381C97 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.183 H 282.7°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#381C97
RGBrgb(56, 28, 151)
HSLhsl(254, 69%, 35%)
HSVhsv(254, 81%, 59%)
CMYKcmyk(62.9%, 81.5%, 0%, 40.8%)
CIE-LABlab(23.36, 46.06, -61.74)
CIE-LCHlch(23.36, 77.03, 306.72°)
OKLaboklab(36.01% 0.0401 -0.1781)
OKLCHoklch(36.01% 0.183 282.7)
XYZxyz(7.6303, 3.9051, 29.6238)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C97 #7B971C
analogous
#1C3D97 #381C97 #761C97
triadic
#381C97 #97381C #1C9738
tetradic
#381C97 #971C3D #7B971C #1C9776
square
#381C97 #971C3D #7B971C #1C9776
split-complementary
#381C97 #97761C #3D971C
monochromatic
#120930 #251263 #381C97 #4B26CB #704FDE

Accessibility & contrast

On white

11.79
#381C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#381C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C97
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C97#FFFFFF#000000##FFFFFF
##381C971.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381c97;
/* rgb */ color: rgb(56, 28, 151);
/* oklch */ color: oklch(36.0% 0.183 282.7);
Tailwind
colors: {
  custom: {
    50: '#7c5db7',
    500: '#381c97',
    950: '#000000',
  },
}
SCSS
$custom: #381c97;
$custom-light: #7c5db7;
$custom-dark: #000000;
JSON
{
  "hex": "#381c97",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 253.659,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36008,
    "c": 0.18253,
    "h": 282.7
  },
  "luminance": 0.03906
}

Semantic roles & 50–950 ramp

primary
#381C97
secondary
#A7C14E
accent
#EC3CC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381C97

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

Preview Lab → · Contrast checker → · Palette generator →

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