#401B80#401B80

#401B80 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.156 H 292.9°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#401B80
RGBrgb(64, 27, 128)
HSLhsl(262, 65%, 30%)
HSVhsv(262, 79%, 50%)
CMYKcmyk(50%, 78.9%, 0%, 49.8%)
CIE-LABlab(21.70, 40.94, -50.08)
CIE-LCHlch(21.70, 64.69, 309.26°)
OKLaboklab(34.35% 0.0608 -0.1437)
OKLCHoklch(34.35% 0.156 292.9)
XYZxyz(6.4015, 3.4321, 20.7431)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B80 #5B801B
analogous
#1B2980 #401B80 #721B80
triadic
#401B80 #80401B #1B8040
tetradic
#401B80 #801B29 #5B801B #1B8072
square
#401B80 #801B29 #5B801B #1B8072
split-complementary
#401B80 #80721B #29801B
monochromatic
#0D061B #27104D #401B80 #5926B3 #763FD6

Accessibility & contrast

On white

12.45
#401B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#401B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B80
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B80#FFFFFF#000000##FFFFFF
##401B801.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)
#003583
Deuteranopia (green-blind)
#00327E
Tritanopia (blue-blind)
#2C374D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401b80;
/* rgb */ color: rgb(64, 27, 128);
/* oklch */ color: oklch(34.3% 0.156 292.9);
Tailwind
colors: {
  custom: {
    50: '#7c5ca6',
    500: '#401b80',
    950: '#000000',
  },
}
SCSS
$custom: #401b80;
$custom-light: #7c5ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#401b80",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 261.98,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34348,
    "c": 0.15605,
    "h": 292.9
  },
  "luminance": 0.03432
}

Semantic roles & 50–950 ramp

primary
#401B80
secondary
#8AB443
accent
#E840AA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401B80

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

Preview Lab → · Contrast checker → · Palette generator →

#401B80 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva