#401C6A#401C6A

#401C6A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.129 H 300.4°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#401C6A
RGBrgb(64, 28, 106)
HSLhsl(268, 58%, 26%)
HSVhsv(268, 74%, 42%)
CMYKcmyk(39.6%, 73.6%, 0%, 58.4%)
CIE-LABlab(19.89, 34.28, -38.91)
CIE-LCHlch(19.89, 51.86, 311.38°)
OKLaboklab(32.45% 0.0651 -0.1109)
OKLCHoklch(32.45% 0.129 300.4)
XYZxyz(5.1305, 2.9611, 13.9341)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C6A #466A1C
analogous
#1C1F6A #401C6A #671C6A
triadic
#401C6A #6A401C #1C6A40
tetradic
#401C6A #6A1C1F #466A1C #1C6A67
square
#401C6A #6A1C1F #466A1C #1C6A67
split-complementary
#401C6A #6A671C #1F6A1C
monochromatic
#0F0618 #230F3A #401C6A #5D299A #7B36CA

Accessibility & contrast

On white

13.19
#401C6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#401C6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C6A
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C6A#FFFFFF#000000##FFFFFF
##401C6A1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#003068
Tritanopia (blue-blind)
#372F41
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401c6a;
/* rgb */ color: rgb(64, 28, 106);
/* oklch */ color: oklch(32.5% 0.129 300.4);
Tailwind
colors: {
  custom: {
    50: '#795b95',
    500: '#401c6a',
    950: '#000000',
  },
}
SCSS
$custom: #401c6a;
$custom-light: #795b95;
$custom-dark: #000000;
JSON
{
  "hex": "#401c6a",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 106
  },
  "hsl": {
    "h": 267.692,
    "s": 58.209,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32454,
    "c": 0.12864,
    "h": 300.4
  },
  "luminance": 0.02961
}

Semantic roles & 50–950 ramp

primary
#401C6A
secondary
#749F43
accent
#E1469A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401C6A

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

Preview Lab → · Contrast checker → · Palette generator →

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