#381F86#381F86

#381F86 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.159 H 285.7°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#381F86
RGBrgb(56, 31, 134)
HSLhsl(255, 62%, 32%)
HSVhsv(255, 77%, 53%)
CMYKcmyk(58.2%, 76.9%, 0%, 47.5%)
CIE-LABlab(22.09, 39.46, -53.25)
CIE-LCHlch(22.09, 66.27, 306.54°)
OKLaboklab(34.59% 0.0431 -0.1533)
OKLCHoklch(34.59% 0.159 285.7)
XYZxyz(6.4226, 3.5416, 22.8948)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F86 #6D861F
analogous
#1F3A86 #381F86 #6B1F86
triadic
#381F86 #86381F #1F8638
tetradic
#381F86 #861F3A #6D861F #1F866B
square
#381F86 #861F3A #6D861F #1F866B
split-complementary
#381F86 #866B1F #3A861F
monochromatic
#0E0823 #231454 #381F86 #4D2AB8 #6C4AD5

Accessibility & contrast

On white

12.29
#381F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#381F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F86
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F86#FFFFFF#000000##FFFFFF
##381F861.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#123C51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381f86;
/* rgb */ color: rgb(56, 31, 134);
/* oklch */ color: oklch(34.6% 0.159 285.7);
Tailwind
colors: {
  custom: {
    50: '#785eaa',
    500: '#381f86',
    950: '#000000',
  },
}
SCSS
$custom: #381f86;
$custom-light: #785eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#381f86",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 254.563,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34594,
    "c": 0.15925,
    "h": 285.7
  },
  "luminance": 0.03542
}

Semantic roles & 50–950 ramp

primary
#381F86
secondary
#9DB849
accent
#E542BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381F86

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

Preview Lab → · Contrast checker → · Palette generator →

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