#381581#381581

#381581 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.163 H 288.6°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#381581
RGBrgb(56, 21, 129)
HSLhsl(259, 72%, 29%)
HSVhsv(259, 84%, 51%)
CMYKcmyk(56.6%, 83.7%, 0%, 49.4%)
CIE-LABlab(19.89, 42.83, -53.72)
CIE-LCHlch(19.89, 68.71, 308.56°)
OKLaboklab(32.9% 0.0519 -0.1546)
OKLCHoklch(32.9% 0.163 288.6)
XYZxyz(5.8603, 2.9618, 21.0275)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381581 #5E8115
analogous
#152881 #381581 #6E1581
triadic
#381581 #813815 #158138
tetradic
#381581 #811528 #5E8115 #15816E
square
#381581 #811528 #5E8115 #15816E
split-complementary
#381581 #816E15 #288115
monochromatic
#0B041A #210C4C #381581 #4F1EB6 #6A33DE

Accessibility & contrast

On white

13.19
#381581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#381581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381581
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381581#FFFFFF#000000##FFFFFF
##3815811.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#19364C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381581;
/* rgb */ color: rgb(56, 21, 129);
/* oklch */ color: oklch(32.9% 0.163 288.6);
Tailwind
colors: {
  custom: {
    50: '#7858a7',
    500: '#381581',
    950: '#000000',
  },
}
SCSS
$custom: #381581;
$custom-light: #7858a7;
$custom-dark: #000000;
JSON
{
  "hex": "#381581",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 259.444,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32901,
    "c": 0.16307,
    "h": 288.6
  },
  "luminance": 0.02962
}

Semantic roles & 50–950 ramp

primary
#381581
secondary
#8EB63C
accent
#EF39B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381581

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

Preview Lab → · Contrast checker → · Palette generator →

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