#401064#401064

#401064 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.136 H 305.3°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#401064
RGBrgb(64, 16, 100)
HSLhsl(274, 72%, 23%)
HSVhsv(274, 84%, 39%)
CMYKcmyk(36%, 84%, 0%, 60.8%)
CIE-LABlab(17.37, 38.37, -39.07)
CIE-LCHlch(17.37, 54.76, 314.48°)
OKLaboklab(30.51% 0.0788 -0.1113)
OKLCHoklch(30.51% 0.136 305.3)
XYZxyz(4.5994, 2.3807, 12.2713)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401064 #346410
analogous
#161064 #401064 #64105E
triadic
#401064 #644010 #106440
tetradic
#401064 #641610 #346410 #105E64
square
#401064 #641610 #346410 #105E64
split-complementary
#401064 #5E6410 #106416
monochromatic
#11041A #1E082F #401064 #621899 #8421CE

Accessibility & contrast

On white

14.23
#401064 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#401064 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401064
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401064#FFFFFF#000000##FFFFFF
##4010641.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002B62
Tritanopia (blue-blind)
#39263A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401064;
/* rgb */ color: rgb(64, 16, 100);
/* oklch */ color: oklch(30.5% 0.136 305.3);
Tailwind
colors: {
  custom: {
    50: '#795591',
    500: '#401064',
    950: '#000000',
  },
}
SCSS
$custom: #401064;
$custom-light: #795591;
$custom-dark: #000000;
JSON
{
  "hex": "#401064",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 100
  },
  "hsl": {
    "h": 274.286,
    "s": 72.414,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30514,
    "c": 0.13636,
    "h": 305.3
  },
  "luminance": 0.02381
}

Semantic roles & 50–950 ramp

primary
#401064
secondary
#609D33
accent
#EF3987
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #401064

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

Preview Lab → · Contrast checker → · Palette generator →

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