#381B89#381B89

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

Color values

HEX#381B89
RGBrgb(56, 27, 137)
HSLhsl(256, 67%, 32%)
HSVhsv(256, 80%, 54%)
CMYKcmyk(59.1%, 80.3%, 0%, 46.3%)
CIE-LABlab(21.69, 42.39, -55.79)
CIE-LCHlch(21.69, 70.07, 307.23°)
OKLaboklab(34.41% 0.0452 -0.1607)
OKLCHoklch(34.41% 0.167 285.7)
XYZxyz(6.5368, 3.4304, 23.9797)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B89 #6C891B
analogous
#1B3589 #381B89 #6F1B89
triadic
#381B89 #89381B #1B8938
tetradic
#381B89 #891B35 #6C891B #1B896F
square
#381B89 #891B35 #6C891B #1B896F
split-complementary
#381B89 #896F1B #35891B
monochromatic
#0E0723 #231156 #381B89 #4D25BC #6C44DA

Accessibility & contrast

On white

12.45
#381B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#381B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B89
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B89#FFFFFF#000000##FFFFFF
##381B891.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381b89;
/* rgb */ color: rgb(56, 27, 137);
/* oklch */ color: oklch(34.4% 0.167 285.7);
Tailwind
colors: {
  custom: {
    50: '#795cad',
    500: '#381b89',
    950: '#000000',
  },
}
SCSS
$custom: #381b89;
$custom-light: #795cad;
$custom-dark: #000000;
JSON
{
  "hex": "#381b89",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 255.818,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34405,
    "c": 0.16693,
    "h": 285.7
  },
  "luminance": 0.03431
}

Semantic roles & 50–950 ramp

primary
#381B89
secondary
#9CBC44
accent
#EA3EBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381B89

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

Preview Lab → · Contrast checker → · Palette generator →

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