#401C68#401C68

#401C68 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.126 H 301.3°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#401C68
RGBrgb(64, 28, 104)
HSLhsl(268, 58%, 26%)
HSVhsv(268, 73%, 41%)
CMYKcmyk(38.5%, 73.1%, 0%, 59.2%)
CIE-LABlab(19.72, 33.73, -37.88)
CIE-LCHlch(19.72, 50.72, 311.68°)
OKLaboklab(32.28% 0.0655 -0.1079)
OKLCHoklch(32.28% 0.126 301.3)
XYZxyz(5.0277, 2.9199, 13.3927)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C68 #44681C
analogous
#1C1E68 #401C68 #661C68
triadic
#401C68 #68401C #1C6840
tetradic
#401C68 #681C1E #44681C #1C6866
square
#401C68 #681C1E #44681C #1C6866
split-complementary
#401C68 #68661C #1E681C
monochromatic
#0F0618 #220F38 #401C68 #5E2998 #7B36C8

Accessibility & contrast

On white

13.26
#401C68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401C68
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C68#FFFFFF#000000##FFFFFF
##401C681.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#002F66
Tritanopia (blue-blind)
#372E3F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401c68;
/* rgb */ color: rgb(64, 28, 104);
/* oklch */ color: oklch(32.3% 0.126 301.3);
Tailwind
colors: {
  custom: {
    50: '#795b94',
    500: '#401c68',
    950: '#000000',
  },
}
SCSS
$custom: #401c68;
$custom-light: #795b94;
$custom-dark: #000000;
JSON
{
  "hex": "#401c68",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 104
  },
  "hsl": {
    "h": 268.421,
    "s": 57.576,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32282,
    "c": 0.12621,
    "h": 301.3
  },
  "luminance": 0.0292
}

Semantic roles & 50–950 ramp

primary
#401C68
secondary
#729D43
accent
#E14798
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401C68

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

Preview Lab → · Contrast checker → · Palette generator →

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