#381C84#381C84

#381C84 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.160 H 286.7°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#381C84
RGBrgb(56, 28, 132)
HSLhsl(256, 65%, 31%)
HSVhsv(256, 79%, 52%)
CMYKcmyk(57.6%, 78.8%, 0%, 48.2%)
CIE-LABlab(21.35, 40.41, -53.22)
CIE-LCHlch(21.35, 66.82, 307.21°)
OKLaboklab(34.01% 0.046 -0.1532)
OKLCHoklch(34.01% 0.16 286.7)
XYZxyz(6.2098, 3.3369, 22.1422)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C84 #68841C
analogous
#1C3484 #381C84 #6C1C84
triadic
#381C84 #84381C #1C8438
tetradic
#381C84 #841C34 #68841C #1C846C
square
#381C84 #841C34 #68841C #1C846C
split-complementary
#381C84 #846C1C #34841C
monochromatic
#0D071F #231152 #381C84 #4D27B6 #6B43D7

Accessibility & contrast

On white

12.59
#381C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#381C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C84
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C84#FFFFFF#000000##FFFFFF
##381C841.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#153A4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381c84;
/* rgb */ color: rgb(56, 28, 132);
/* oklch */ color: oklch(34.0% 0.160 286.7);
Tailwind
colors: {
  custom: {
    50: '#785ca9',
    500: '#381c84',
    950: '#000000',
  },
}
SCSS
$custom: #381c84;
$custom-light: #785ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#381c84",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 256.154,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34007,
    "c": 0.15996,
    "h": 286.7
  },
  "luminance": 0.03337
}

Semantic roles & 50–950 ramp

primary
#381C84
secondary
#98B745
accent
#E840BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381C84

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

Preview Lab → · Contrast checker → · Palette generator →

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