#401980#401980

#401980 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.158 H 293.2°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#401980
RGBrgb(64, 25, 128)
HSLhsl(263, 67%, 30%)
HSVhsv(263, 80%, 50%)
CMYKcmyk(50%, 80.5%, 0%, 49.8%)
CIE-LABlab(21.37, 41.88, -50.62)
CIE-LCHlch(21.37, 65.70, 309.60°)
OKLaboklab(34.12% 0.0624 -0.1453)
OKLCHoklch(34.12% 0.158 293.2)
XYZxyz(6.3572, 3.3436, 20.7283)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401980 #598019
analogous
#192680 #401980 #731980
triadic
#401980 #804019 #198040
tetradic
#401980 #801926 #598019 #198073
square
#401980 #801926 #598019 #198073
split-complementary
#401980 #807319 #268019
monochromatic
#0D051A #260F4D #401980 #5A23B3 #773BD9

Accessibility & contrast

On white

12.58
#401980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#401980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401980
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401980#FFFFFF#000000##FFFFFF
##4019801.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#2C364C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #401980;
/* rgb */ color: rgb(64, 25, 128);
/* oklch */ color: oklch(34.1% 0.158 293.2);
Tailwind
colors: {
  custom: {
    50: '#7c5ba6',
    500: '#401980',
    950: '#000000',
  },
}
SCSS
$custom: #401980;
$custom-light: #7c5ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#401980",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 262.718,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.34119,
    "c": 0.15813,
    "h": 293.2
  },
  "luminance": 0.03344
}

Semantic roles & 50–950 ramp

primary
#401980
secondary
#88B441
accent
#EA3EA9
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401980

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

Preview Lab → · Contrast checker → · Palette generator →

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