#381A88#381A88

#381A88 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.167 H 286.1°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#381A88
RGBrgb(56, 26, 136)
HSLhsl(256, 68%, 32%)
HSVhsv(256, 81%, 53%)
CMYKcmyk(58.8%, 80.9%, 0%, 46.7%)
CIE-LABlab(21.42, 42.58, -55.62)
CIE-LCHlch(21.42, 70.04, 307.44°)
OKLaboklab(34.18% 0.0462 -0.1602)
OKLCHoklch(34.18% 0.167 286.1)
XYZxyz(6.4429, 3.3567, 23.5962)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A88 #6A881A
analogous
#1A3388 #381A88 #6F1A88
triadic
#381A88 #88381A #1A8838
tetradic
#381A88 #881A33 #6A881A #1A886F
square
#381A88 #881A33 #6A881A #1A886F
split-complementary
#381A88 #886F1A #33881A
monochromatic
#0E0621 #231055 #381A88 #4D24BB #6B42DB

Accessibility & contrast

On white

12.56
#381A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#381A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A88
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A88#FFFFFF#000000##FFFFFF
##381A881.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#0F3A51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381a88;
/* rgb */ color: rgb(56, 26, 136);
/* oklch */ color: oklch(34.2% 0.167 286.1);
Tailwind
colors: {
  custom: {
    50: '#795bac',
    500: '#381a88',
    950: '#000000',
  },
}
SCSS
$custom: #381a88;
$custom-light: #795bac;
$custom-dark: #000000;
JSON
{
  "hex": "#381a88",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 136
  },
  "hsl": {
    "h": 256.364,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34184,
    "c": 0.1667,
    "h": 286.1
  },
  "luminance": 0.03357
}

Semantic roles & 50–950 ramp

primary
#381A88
secondary
#9ABB43
accent
#EB3DBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381A88

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

Preview Lab → · Contrast checker → · Palette generator →

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