#381A86#381A86

#381A86 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.164 H 286.5°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#381A86
RGBrgb(56, 26, 134)
HSLhsl(257, 68%, 31%)
HSVhsv(257, 81%, 53%)
CMYKcmyk(58.2%, 80.6%, 0%, 47.5%)
CIE-LABlab(21.21, 41.99, -54.71)
CIE-LCHlch(21.21, 68.96, 307.51°)
OKLaboklab(33.97% 0.0468 -0.1575)
OKLCHoklch(33.97% 0.164 286.5)
XYZxyz(6.3021, 3.3004, 22.8546)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A86 #68861A
analogous
#1A3286 #381A86 #6E1A86
triadic
#381A86 #86381A #1A8638
tetradic
#381A86 #861A32 #68861A #1A866E
square
#381A86 #861A32 #68861A #1A866E
split-complementary
#381A86 #866E1A #32861A
monochromatic
#0D061F #231053 #381A86 #4D24B9 #6B40DA

Accessibility & contrast

On white

12.65
#381A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#381A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A86
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A86#FFFFFF#000000##FFFFFF
##381A861.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#123A50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381a86;
/* rgb */ color: rgb(56, 26, 134);
/* oklch */ color: oklch(34.0% 0.164 286.5);
Tailwind
colors: {
  custom: {
    50: '#795baa',
    500: '#381a86',
    950: '#000000',
  },
}
SCSS
$custom: #381a86;
$custom-light: #795baa;
$custom-dark: #000000;
JSON
{
  "hex": "#381a86",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 134
  },
  "hsl": {
    "h": 256.667,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33974,
    "c": 0.16433,
    "h": 286.5
  },
  "luminance": 0.03301
}

Semantic roles & 50–950 ramp

primary
#381A86
secondary
#98B942
accent
#EA3DBA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381A86

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

Preview Lab → · Contrast checker → · Palette generator →

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