#381780#381780

#381780 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.160 H 288.5°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#381780
RGBrgb(56, 23, 128)
HSLhsl(259, 70%, 30%)
HSVhsv(259, 82%, 50%)
CMYKcmyk(56.3%, 82%, 0%, 49.8%)
CIE-LABlab(20.09, 41.65, -52.76)
CIE-LCHlch(20.09, 67.22, 308.29°)
OKLaboklab(33.01% 0.0509 -0.1518)
OKLCHoklch(33.01% 0.16 288.5)
XYZxyz(5.8324, 3.0118, 20.6919)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381780 #5F8017
analogous
#172B80 #381780 #6D1780
triadic
#381780 #803817 #178038
tetradic
#381780 #80172B #5F8017 #17806D
square
#381780 #80172B #5F8017 #17806D
split-complementary
#381780 #806D17 #2B8017
monochromatic
#0B051A #210E4C #381780 #4F20B4 #6A36DB

Accessibility & contrast

On white

13.11
#381780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#381780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381780
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381780#FFFFFF#000000##FFFFFF
##3817801.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#1A364C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381780;
/* rgb */ color: rgb(56, 23, 128);
/* oklch */ color: oklch(33.0% 0.160 288.5);
Tailwind
colors: {
  custom: {
    50: '#7859a6',
    500: '#381780',
    950: '#000000',
  },
}
SCSS
$custom: #381780;
$custom-light: #7859a6;
$custom-dark: #000000;
JSON
{
  "hex": "#381780",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 258.857,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33008,
    "c": 0.1601,
    "h": 288.5
  },
  "luminance": 0.03012
}

Semantic roles & 50–950 ramp

primary
#381780
secondary
#8FB43E
accent
#EC3BB5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #381780

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

Preview Lab → · Contrast checker → · Palette generator →

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