#381986#381986

#381986 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.165 H 286.7°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#381986
RGBrgb(56, 25, 134)
HSLhsl(257, 69%, 31%)
HSVhsv(257, 81%, 53%)
CMYKcmyk(58.2%, 81.3%, 0%, 47.5%)
CIE-LABlab(21.04, 42.46, -54.98)
CIE-LCHlch(21.04, 69.47, 307.68°)
OKLaboklab(33.86% 0.0475 -0.1583)
OKLCHoklch(33.86% 0.165 286.7)
XYZxyz(6.2803, 3.2569, 22.8473)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381986 #678619
analogous
#193086 #381986 #6E1986
triadic
#381986 #863819 #198638
tetradic
#381986 #861930 #678619 #19866E
square
#381986 #861930 #678619 #19866E
split-complementary
#381986 #866E19 #308619
monochromatic
#0D061F #220F52 #381986 #4E23BA #6B3EDB

Accessibility & contrast

On white

12.72
#381986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#381986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381986
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381986#FFFFFF#000000##FFFFFF
##3819861.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#133950
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381986;
/* rgb */ color: rgb(56, 25, 134);
/* oklch */ color: oklch(33.9% 0.165 286.7);
Tailwind
colors: {
  custom: {
    50: '#795aaa',
    500: '#381986',
    950: '#000000',
  },
}
SCSS
$custom: #381986;
$custom-light: #795aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#381986",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 257.064,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3386,
    "c": 0.16527,
    "h": 286.7
  },
  "luminance": 0.03257
}

Semantic roles & 50–950 ramp

primary
#381986
secondary
#97BA41
accent
#EB3CBA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381986

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

Preview Lab → · Contrast checker → · Palette generator →

#381986 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva