#401AA0#401AA0

#401AA0 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.193 H 285.2°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#401AA0
RGBrgb(64, 26, 160)
HSLhsl(257, 72%, 36%)
HSVhsv(257, 84%, 63%)
CMYKcmyk(60%, 83.8%, 0%, 37.3%)
CIE-LABlab(24.85, 50.36, -64.76)
CIE-LCHlch(24.85, 82.04, 307.87°)
OKLaboklab(37.52% 0.0507 -0.1866)
OKLCHoklch(37.52% 0.193 285.2)
XYZxyz(8.8270, 4.3663, 33.6285)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401AA0 #7AA01A
analogous
#1A37A0 #401AA0 #831AA0
triadic
#401AA0 #A0401A #1AA040
tetradic
#401AA0 #A01A37 #7AA01A #1AA083
square
#401AA0 #A01A37 #7AA01A #1AA083
split-complementary
#401AA0 #A0831A #37A01A
monochromatic
#160937 #2B116B #401AA0 #5523D5 #7B52E3

Accessibility & contrast

On white

11.21
#401AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#401AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401AA0
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401AA0#FFFFFF#000000##FFFFFF
##401AA01.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00379E
Tritanopia (blue-blind)
#02445F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #401aa0;
/* rgb */ color: rgb(64, 26, 160);
/* oklch */ color: oklch(37.5% 0.193 285.2);
Tailwind
colors: {
  custom: {
    50: '#825ebd',
    500: '#401aa0',
    950: '#000000',
  },
}
SCSS
$custom: #401aa0;
$custom-light: #825ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#401aa0",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 160
  },
  "hsl": {
    "h": 257.015,
    "s": 72.043,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37522,
    "c": 0.1934,
    "h": 285.2
  },
  "luminance": 0.04367
}

Semantic roles & 50–950 ramp

primary
#401AA0
secondary
#A4C550
accent
#EF39BB
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #401AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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