#401C6B#401C6B

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

Color values

HEX#401C6B
RGBrgb(64, 28, 107)
HSLhsl(267, 59%, 26%)
HSVhsv(267, 74%, 42%)
CMYKcmyk(40.2%, 73.8%, 0%, 58%)
CIE-LABlab(19.97, 34.55, -39.43)
CIE-LCHlch(19.97, 52.42, 311.23°)
OKLaboklab(32.54% 0.0649 -0.1124)
OKLCHoklch(32.54% 0.13 300)
XYZxyz(5.1828, 2.9820, 14.2096)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C6B #476B1C
analogous
#1C1F6B #401C6B #681C6B
triadic
#401C6B #6B401C #1C6B40
tetradic
#401C6B #6B1C1F #476B1C #1C6B68
square
#401C6B #6B1C1F #476B1C #1C6B68
split-complementary
#401C6B #6B681C #1F6B1C
monochromatic
#0F0618 #230F3A #401C6B #5D299C #7A37CB

Accessibility & contrast

On white

13.15
#401C6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#401C6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C6B
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C6B#FFFFFF#000000##FFFFFF
##401C6B1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#003069
Tritanopia (blue-blind)
#362F41
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401c6b;
/* rgb */ color: rgb(64, 28, 107);
/* oklch */ color: oklch(32.5% 0.130 300.0);
Tailwind
colors: {
  custom: {
    50: '#795b96',
    500: '#401c6b',
    950: '#000000',
  },
}
SCSS
$custom: #401c6b;
$custom-light: #795b96;
$custom-dark: #000000;
JSON
{
  "hex": "#401c6b",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 107
  },
  "hsl": {
    "h": 267.342,
    "s": 58.519,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3254,
    "c": 0.12986,
    "h": 300
  },
  "luminance": 0.02982
}

Semantic roles & 50–950 ramp

primary
#401C6B
secondary
#76A043
accent
#E2469B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401C6B

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

Preview Lab → · Contrast checker → · Palette generator →

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