#401C66#401C66

#401C66 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.1% C 0.124 H 302.1°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#401C66
RGBrgb(64, 28, 102)
HSLhsl(269, 57%, 25%)
HSVhsv(269, 73%, 40%)
CMYKcmyk(37.3%, 72.5%, 0%, 60%)
CIE-LABlab(19.56, 33.18, -36.83)
CIE-LCHlch(19.56, 49.57, 312.01°)
OKLaboklab(32.11% 0.0658 -0.1048)
OKLCHoklch(32.11% 0.124 302.1)
XYZxyz(4.9273, 2.8798, 12.8641)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C66 #42661C
analogous
#1C1D66 #401C66 #651C66
triadic
#401C66 #66401C #1C6640
tetradic
#401C66 #661C1D #42661C #1C6665
square
#401C66 #661C1D #42661C #1C6665
split-complementary
#401C66 #66651C #1D661C
monochromatic
#0F0718 #220F36 #401C66 #5E2996 #7C36C6

Accessibility & contrast

On white

13.32
#401C66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#401C66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C66
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C66#FFFFFF#000000##FFFFFF
##401C661.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F68
Deuteranopia (green-blind)
#002F64
Tritanopia (blue-blind)
#382D3E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401c66;
/* rgb */ color: rgb(64, 28, 102);
/* oklch */ color: oklch(32.1% 0.124 302.1);
Tailwind
colors: {
  custom: {
    50: '#795b92',
    500: '#401c66',
    950: '#000000',
  },
}
SCSS
$custom: #401c66;
$custom-light: #795b92;
$custom-dark: #000000;
JSON
{
  "hex": "#401c66",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 102
  },
  "hsl": {
    "h": 269.189,
    "s": 56.923,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32113,
    "c": 0.12376,
    "h": 302.1
  },
  "luminance": 0.0288
}

Semantic roles & 50–950 ramp

primary
#401C66
secondary
#709B43
accent
#E04896
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401C66

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

Preview Lab → · Contrast checker → · Palette generator →

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