#381A89#381A89

#381A89 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.168 H 285.8°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#381A89
RGBrgb(56, 26, 137)
HSLhsl(256, 68%, 32%)
HSVhsv(256, 81%, 54%)
CMYKcmyk(59.1%, 81%, 0%, 46.3%)
CIE-LABlab(21.53, 42.87, -56.07)
CIE-LCHlch(21.53, 70.58, 307.40°)
OKLaboklab(34.29% 0.0458 -0.1615)
OKLCHoklch(34.29% 0.168 285.8)
XYZxyz(6.5143, 3.3853, 23.9722)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A89 #6B891A
analogous
#1A3489 #381A89 #701A89
triadic
#381A89 #89381A #1A8938
tetradic
#381A89 #891A34 #6B891A #1A8970
square
#381A89 #891A34 #6B891A #1A8970
split-complementary
#381A89 #89701A #34891A
monochromatic
#0E0622 #231056 #381A89 #4D24BC #6C42DB

Accessibility & contrast

On white

12.52
#381A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#381A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A89
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A89#FFFFFF#000000##FFFFFF
##381A891.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#003087
Tritanopia (blue-blind)
#0D3B52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #381a89;
/* rgb */ color: rgb(56, 26, 137);
/* oklch */ color: oklch(34.3% 0.168 285.8);
Tailwind
colors: {
  custom: {
    50: '#795bad',
    500: '#381a89',
    950: '#000000',
  },
}
SCSS
$custom: #381a89;
$custom-light: #795bad;
$custom-dark: #000000;
JSON
{
  "hex": "#381a89",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 256.216,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34289,
    "c": 0.16788,
    "h": 285.8
  },
  "luminance": 0.03386
}

Semantic roles & 50–950 ramp

primary
#381A89
secondary
#9BBC43
accent
#EB3DBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381A89

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

Preview Lab → · Contrast checker → · Palette generator →

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