#381C92#381C92

#381C92 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.177 H 283.6°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#381C92
RGBrgb(56, 28, 146)
HSLhsl(254, 68%, 34%)
HSVhsv(254, 81%, 57%)
CMYKcmyk(61.6%, 80.8%, 0%, 42.7%)
CIE-LABlab(22.81, 44.58, -59.55)
CIE-LCHlch(22.81, 74.39, 306.82°)
OKLaboklab(35.47% 0.0417 -0.1717)
OKLCHoklch(35.47% 0.177 283.6)
XYZxyz(7.2328, 3.7461, 27.5305)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C92 #76921C
analogous
#1C3B92 #381C92 #731C92
triadic
#381C92 #92381C #1C9238
tetradic
#381C92 #921C3B #76921C #1C9273
square
#381C92 #921C3B #76921C #1C9273
split-complementary
#381C92 #92731C #3B921C
monochromatic
#11082B #24125F #381C92 #4C26C5 #6E4CDD

Accessibility & contrast

On white

12.00
#381C92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#381C92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C92
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C92#FFFFFF#000000##FFFFFF
##381C921.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A95
Deuteranopia (green-blind)
#003390
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381c92;
/* rgb */ color: rgb(56, 28, 146);
/* oklch */ color: oklch(35.5% 0.177 283.6);
Tailwind
colors: {
  custom: {
    50: '#7b5db3',
    500: '#381c92',
    950: '#000000',
  },
}
SCSS
$custom: #381c92;
$custom-light: #7b5db3;
$custom-dark: #000000;
JSON
{
  "hex": "#381c92",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 146
  },
  "hsl": {
    "h": 254.237,
    "s": 67.816,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35471,
    "c": 0.17666,
    "h": 283.6
  },
  "luminance": 0.03747
}

Semantic roles & 50–950 ramp

primary
#381C92
secondary
#A3BF4B
accent
#EB3DC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381C92

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

Preview Lab → · Contrast checker → · Palette generator →

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