#401164#401164

#401164 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.135 H 305.1°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#401164
RGBrgb(64, 17, 100)
HSLhsl(274, 71%, 23%)
HSVhsv(274, 83%, 39%)
CMYKcmyk(36%, 83%, 0%, 60.8%)
CIE-LABlab(17.51, 37.96, -38.84)
CIE-LCHlch(17.51, 54.31, 314.34°)
OKLaboklab(30.61% 0.0779 -0.1106)
OKLCHoklch(30.61% 0.135 305.1)
XYZxyz(4.6145, 2.4110, 12.2764)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401164 #356411
analogous
#171164 #401164 #64115E
triadic
#401164 #644011 #116440
tetradic
#401164 #641711 #356411 #115E64
square
#401164 #641711 #356411 #115E64
split-complementary
#401164 #5E6411 #116417
monochromatic
#11041A #1F0830 #401164 #611A98 #8323CD

Accessibility & contrast

On white

14.17
#401164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401164
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401164#FFFFFF#000000##FFFFFF
##4011641.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401164;
/* rgb */ color: rgb(64, 17, 100);
/* oklch */ color: oklch(30.6% 0.135 305.1);
Tailwind
colors: {
  custom: {
    50: '#795591',
    500: '#401164',
    950: '#000000',
  },
}
SCSS
$custom: #401164;
$custom-light: #795591;
$custom-dark: #000000;
JSON
{
  "hex": "#401164",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 100
  },
  "hsl": {
    "h": 273.976,
    "s": 70.94,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30613,
    "c": 0.1353,
    "h": 305.1
  },
  "luminance": 0.02411
}

Semantic roles & 50–950 ramp

primary
#401164
secondary
#629C35
accent
#EE3A88
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #401164

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

Preview Lab → · Contrast checker → · Palette generator →

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