#381580#381580

#381580 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.162 H 288.8°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#381580
RGBrgb(56, 21, 128)
HSLhsl(260, 72%, 29%)
HSVhsv(260, 84%, 50%)
CMYKcmyk(56.3%, 83.6%, 0%, 49.8%)
CIE-LABlab(19.78, 42.55, -53.27)
CIE-LCHlch(19.78, 68.17, 308.62°)
OKLaboklab(32.8% 0.0522 -0.1533)
OKLCHoklch(32.8% 0.162 288.8)
XYZxyz(5.7942, 2.9353, 20.6792)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381580 #5D8015
analogous
#152880 #381580 #6E1580
triadic
#381580 #803815 #158038
tetradic
#381580 #801528 #5D8015 #15806E
square
#381580 #801528 #5D8015 #15806E
split-complementary
#381580 #806E15 #288015
monochromatic
#0C041A #210C4B #381580 #4F1EB5 #6A32DD

Accessibility & contrast

On white

13.23
#381580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381580
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381580#FFFFFF#000000##FFFFFF
##3815801.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#1A354B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381580;
/* rgb */ color: rgb(56, 21, 128);
/* oklch */ color: oklch(32.8% 0.162 288.8);
Tailwind
colors: {
  custom: {
    50: '#7858a6',
    500: '#381580',
    950: '#000000',
  },
}
SCSS
$custom: #381580;
$custom-light: #7858a6;
$custom-dark: #000000;
JSON
{
  "hex": "#381580",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 259.626,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32795,
    "c": 0.16192,
    "h": 288.8
  },
  "luminance": 0.02936
}

Semantic roles & 50–950 ramp

primary
#381580
secondary
#8DB53C
accent
#EF39B3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #381580

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

Preview Lab → · Contrast checker → · Palette generator →

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