#381A94#381A94

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

Color values

HEX#381A94
RGBrgb(56, 26, 148)
HSLhsl(255, 70%, 34%)
HSVhsv(255, 82%, 58%)
CMYKcmyk(62.2%, 82.4%, 0%, 42%)
CIE-LABlab(22.71, 46.09, -60.95)
CIE-LCHlch(22.71, 76.42, 307.10°)
OKLaboklab(35.47% 0.0422 -0.1757)
OKLCHoklch(35.47% 0.181 283.5)
XYZxyz(7.3439, 3.7172, 28.3417)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A94 #76941A
analogous
#1A3994 #381A94 #751A94
triadic
#381A94 #94381A #1A9438
tetradic
#381A94 #941A39 #76941A #1A9475
square
#381A94 #941A39 #76941A #1A9475
split-complementary
#381A94 #94751A #39941A
monochromatic
#11082C #241160 #381A94 #4C23C8 #6E49DF

Accessibility & contrast

On white

12.04
#381A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#381A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A94
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A94#FFFFFF#000000##FFFFFF
##381A941.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#003F58
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381a94;
/* rgb */ color: rgb(56, 26, 148);
/* oklch */ color: oklch(35.5% 0.181 283.5);
Tailwind
colors: {
  custom: {
    50: '#7b5cb5',
    500: '#381a94',
    950: '#000000',
  },
}
SCSS
$custom: #381a94;
$custom-light: #7b5cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#381a94",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 148
  },
  "hsl": {
    "h": 254.754,
    "s": 70.115,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35466,
    "c": 0.18074,
    "h": 283.5
  },
  "luminance": 0.03718
}

Semantic roles & 50–950 ramp

primary
#381A94
secondary
#A3C149
accent
#ED3BC1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381A94

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

Preview Lab → · Contrast checker → · Palette generator →

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