#381A96#381A96

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

Color values

HEX#381A96
RGBrgb(56, 26, 150)
HSLhsl(255, 70%, 35%)
HSVhsv(255, 83%, 59%)
CMYKcmyk(62.7%, 82.7%, 0%, 41.2%)
CIE-LABlab(22.93, 46.68, -61.82)
CIE-LCHlch(22.93, 77.46, 307.05°)
OKLaboklab(35.68% 0.0415 -0.1783)
OKLCHoklch(35.68% 0.183 283.1)
XYZxyz(7.5036, 3.7810, 29.1827)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A96 #78961A
analogous
#1A3A96 #381A96 #761A96
triadic
#381A96 #96381A #1A9638
tetradic
#381A96 #961A3A #78961A #1A9676
square
#381A96 #961A3A #78961A #1A9676
split-complementary
#381A96 #96761A #3A961A
monochromatic
#11082E #251162 #381A96 #4B23CA #6F4BE0

Accessibility & contrast

On white

11.96
#381A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381A96
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A96#FFFFFF#000000##FFFFFF
##381A961.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003294
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #381a96;
/* rgb */ color: rgb(56, 26, 150);
/* oklch */ color: oklch(35.7% 0.183 283.1);
Tailwind
colors: {
  custom: {
    50: '#7c5cb6',
    500: '#381a96',
    950: '#000000',
  },
}
SCSS
$custom: #381a96;
$custom-light: #7c5cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#381a96",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 150
  },
  "hsl": {
    "h": 254.516,
    "s": 70.455,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35684,
    "c": 0.18305,
    "h": 283.1
  },
  "luminance": 0.03782
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #381A96

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

Preview Lab → · Contrast checker → · Palette generator →

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