#381A95#381A95

#381A95 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.182 H 283.3°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#381A95
RGBrgb(56, 26, 149)
HSLhsl(255, 70%, 34%)
HSVhsv(255, 83%, 58%)
CMYKcmyk(62.4%, 82.6%, 0%, 41.6%)
CIE-LABlab(22.82, 46.38, -61.39)
CIE-LCHlch(22.82, 76.94, 307.07°)
OKLaboklab(35.58% 0.0418 -0.177)
OKLCHoklch(35.58% 0.182 283.3)
XYZxyz(7.4234, 3.7490, 28.7604)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A95 #77951A
analogous
#1A3A95 #381A95 #761A95
triadic
#381A95 #95381A #1A9538
tetradic
#381A95 #951A3A #77951A #1A9576
square
#381A95 #951A3A #77951A #1A9576
split-complementary
#381A95 #95761A #3A951A
monochromatic
#11082D #241161 #381A95 #4C23C9 #6E4ADF

Accessibility & contrast

On white

12.00
#381A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#381A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A95
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A95#FFFFFF#000000##FFFFFF
##381A951.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003293
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381a95;
/* rgb */ color: rgb(56, 26, 149);
/* oklch */ color: oklch(35.6% 0.182 283.3);
Tailwind
colors: {
  custom: {
    50: '#7c5cb5',
    500: '#381a95',
    950: '#000000',
  },
}
SCSS
$custom: #381a95;
$custom-light: #7c5cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#381a95",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 149
  },
  "hsl": {
    "h": 254.634,
    "s": 70.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35575,
    "c": 0.1819,
    "h": 283.3
  },
  "luminance": 0.03749
}

Semantic roles & 50–950 ramp

primary
#381A95
secondary
#A4C14A
accent
#ED3BC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381A95

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

Preview Lab → · Contrast checker → · Palette generator →

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