#401A6A#401A6A

#401A6A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.131 H 300.9°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#401A6A
RGBrgb(64, 26, 106)
HSLhsl(269, 61%, 26%)
HSVhsv(269, 75%, 42%)
CMYKcmyk(39.6%, 75.5%, 0%, 58.4%)
CIE-LABlab(19.51, 35.33, -39.52)
CIE-LCHlch(19.51, 53.01, 311.79°)
OKLaboklab(32.19% 0.0673 -0.1127)
OKLCHoklch(32.19% 0.131 300.9)
XYZxyz(5.0846, 2.8693, 13.9188)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A6A #446A1A
analogous
#1A1C6A #401A6A #681A6A
triadic
#401A6A #6A401A #1A6A40
tetradic
#401A6A #6A1A1C #446A1A #1A6A68
square
#401A6A #6A1A1C #446A1A #1A6A68
split-complementary
#401A6A #6A681A #1C6A1A
monochromatic
#0F0619 #220E39 #401A6A #5E269B #7B32CC

Accessibility & contrast

On white

13.34
#401A6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#401A6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A6A
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A6A#FFFFFF#000000##FFFFFF
##401A6A1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#002F68
Tritanopia (blue-blind)
#372E40
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401a6a;
/* rgb */ color: rgb(64, 26, 106);
/* oklch */ color: oklch(32.2% 0.131 300.9);
Tailwind
colors: {
  custom: {
    50: '#795a95',
    500: '#401a6a',
    950: '#000000',
  },
}
SCSS
$custom: #401a6a;
$custom-light: #795a95;
$custom-dark: #000000;
JSON
{
  "hex": "#401a6a",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 106
  },
  "hsl": {
    "h": 268.5,
    "s": 60.606,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32188,
    "c": 0.1313,
    "h": 300.9
  },
  "luminance": 0.02869
}

Semantic roles & 50–950 ramp

primary
#401A6A
secondary
#729F40
accent
#E44498
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401A6A

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

Preview Lab → · Contrast checker → · Palette generator →

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