#381C95#381C95

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

Color values

HEX#381C95
RGBrgb(56, 28, 149)
HSLhsl(254, 68%, 35%)
HSVhsv(254, 81%, 58%)
CMYKcmyk(62.4%, 81.2%, 0%, 41.6%)
CIE-LABlab(23.14, 45.47, -60.87)
CIE-LCHlch(23.14, 75.98, 306.76°)
OKLaboklab(35.79% 0.0407 -0.1755)
OKLCHoklch(35.79% 0.18 283.1)
XYZxyz(7.4693, 3.8407, 28.7757)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C95 #79951C
analogous
#1C3D95 #381C95 #741C95
triadic
#381C95 #95381C #1C9538
tetradic
#381C95 #951C3D #79951C #1C9574
square
#381C95 #951C3D #79951C #1C9574
split-complementary
#381C95 #95741C #3D951C
monochromatic
#11092E #251261 #381C95 #4B26C9 #6F4EDE

Accessibility & contrast

On white

11.88
#381C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#381C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C95
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C95#FFFFFF#000000##FFFFFF
##381C951.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #381c95;
/* rgb */ color: rgb(56, 28, 149);
/* oklch */ color: oklch(35.8% 0.180 283.1);
Tailwind
colors: {
  custom: {
    50: '#7b5db5',
    500: '#381c95',
    950: '#000000',
  },
}
SCSS
$custom: #381c95;
$custom-light: #7b5db5;
$custom-dark: #000000;
JSON
{
  "hex": "#381c95",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 149
  },
  "hsl": {
    "h": 253.884,
    "s": 68.362,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35792,
    "c": 0.18018,
    "h": 283.1
  },
  "luminance": 0.03841
}

Semantic roles & 50–950 ramp

primary
#381C95
secondary
#A5C04D
accent
#EB3DC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381C95

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

Preview Lab → · Contrast checker → · Palette generator →

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