#381786#381786

#381786 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.167 H 287.0°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#381786
RGBrgb(56, 23, 134)
HSLhsl(258, 71%, 31%)
HSVhsv(258, 83%, 53%)
CMYKcmyk(58.2%, 82.8%, 0%, 47.5%)
CIE-LABlab(20.73, 43.38, -55.50)
CIE-LCHlch(20.73, 70.44, 308.01°)
OKLaboklab(33.64% 0.0488 -0.1598)
OKLCHoklch(33.64% 0.167 287)
XYZxyz(6.2391, 3.1744, 22.8336)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381786 #658617
analogous
#172D86 #381786 #6F1786
triadic
#381786 #863817 #178638
tetradic
#381786 #86172D #658617 #17866F
square
#381786 #86172D #658617 #17866F
split-complementary
#381786 #866F17 #2D8617
monochromatic
#0C051E #220E52 #381786 #4E20BA #6B3ADD

Accessibility & contrast

On white

12.84
#381786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#381786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381786
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381786#FFFFFF#000000##FFFFFF
##3817861.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#13384F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381786;
/* rgb */ color: rgb(56, 23, 134);
/* oklch */ color: oklch(33.6% 0.167 287.0);
Tailwind
colors: {
  custom: {
    50: '#7959aa',
    500: '#381786',
    950: '#000000',
  },
}
SCSS
$custom: #381786;
$custom-light: #7959aa;
$custom-dark: #000000;
JSON
{
  "hex": "#381786",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 257.838,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33642,
    "c": 0.16709,
    "h": 287
  },
  "luminance": 0.03175
}

Semantic roles & 50–950 ramp

primary
#381786
secondary
#95BA3F
accent
#ED3AB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381786

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

Preview Lab → · Contrast checker → · Palette generator →

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