#381C94#381C94

#381C94 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.179 H 283.2°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#381C94
RGBrgb(56, 28, 148)
HSLhsl(254, 68%, 35%)
HSVhsv(254, 81%, 58%)
CMYKcmyk(62.2%, 81.1%, 0%, 42%)
CIE-LABlab(23.03, 45.17, -60.43)
CIE-LCHlch(23.03, 75.45, 306.78°)
OKLaboklab(35.69% 0.041 -0.1742)
OKLCHoklch(35.69% 0.179 283.2)
XYZxyz(7.3898, 3.8089, 28.3570)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C94 #78941C
analogous
#1C3C94 #381C94 #741C94
triadic
#381C94 #94381C #1C9438
tetradic
#381C94 #941C3C #78941C #1C9474
square
#381C94 #941C3C #78941C #1C9474
split-complementary
#381C94 #94741C #3C941C
monochromatic
#11092D #251261 #381C94 #4B26C7 #6F4DDD

Accessibility & contrast

On white

11.92
#381C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381C94
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C94#FFFFFF#000000##FFFFFF
##381C941.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381c94;
/* rgb */ color: rgb(56, 28, 148);
/* oklch */ color: oklch(35.7% 0.179 283.2);
Tailwind
colors: {
  custom: {
    50: '#7b5db5',
    500: '#381c94',
    950: '#000000',
  },
}
SCSS
$custom: #381c94;
$custom-light: #7b5db5;
$custom-dark: #000000;
JSON
{
  "hex": "#381c94",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 148
  },
  "hsl": {
    "h": 254,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35685,
    "c": 0.17901,
    "h": 283.2
  },
  "luminance": 0.03809
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #381C94

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

Preview Lab → · Contrast checker → · Palette generator →

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