#381C93#381C93

#381C93 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.178 H 283.4°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#381C93
RGBrgb(56, 28, 147)
HSLhsl(254, 68%, 34%)
HSVhsv(254, 81%, 58%)
CMYKcmyk(61.9%, 81%, 0%, 42.4%)
CIE-LABlab(22.92, 44.88, -59.99)
CIE-LCHlch(22.92, 74.92, 306.80°)
OKLaboklab(35.58% 0.0413 -0.173)
OKLCHoklch(35.58% 0.178 283.4)
XYZxyz(7.3110, 3.7773, 27.9420)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C93 #77931C
analogous
#1C3B93 #381C93 #741C93
triadic
#381C93 #93381C #1C9338
tetradic
#381C93 #931C3B #77931C #1C9374
square
#381C93 #931C3B #77931C #1C9374
split-complementary
#381C93 #93741C #3B931C
monochromatic
#11082C #241260 #381C93 #4C26C6 #6E4CDD

Accessibility & contrast

On white

11.96
#381C93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381C93
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C93#FFFFFF#000000##FFFFFF
##381C931.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#003391
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #381c93;
/* rgb */ color: rgb(56, 28, 147);
/* oklch */ color: oklch(35.6% 0.178 283.4);
Tailwind
colors: {
  custom: {
    50: '#7b5db4',
    500: '#381c93',
    950: '#000000',
  },
}
SCSS
$custom: #381c93;
$custom-light: #7b5db4;
$custom-dark: #000000;
JSON
{
  "hex": "#381c93",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 147
  },
  "hsl": {
    "h": 254.118,
    "s": 68,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35578,
    "c": 0.17784,
    "h": 283.4
  },
  "luminance": 0.03778
}

Semantic roles & 50–950 ramp

primary
#381C93
secondary
#A4BF4C
accent
#EB3DC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381C93

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

Preview Lab → · Contrast checker → · Palette generator →

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