#401D66#401D66

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

Color values

HEX#401D66
RGBrgb(64, 29, 102)
HSLhsl(269, 56%, 26%)
HSVhsv(269, 72%, 40%)
CMYKcmyk(37.3%, 71.6%, 0%, 60%)
CIE-LABlab(19.75, 32.63, -36.51)
CIE-LCHlch(19.75, 48.97, 311.78°)
OKLaboklab(32.25% 0.0646 -0.1039)
OKLCHoklch(32.25% 0.122 301.9)
XYZxyz(4.9514, 2.9280, 12.8721)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D66 #43661D
analogous
#1D1E66 #401D66 #641D66
triadic
#401D66 #66401D #1D6640
tetradic
#401D66 #661D1E #43661D #1D6664
square
#401D66 #661D1E #43661D #1D6664
split-complementary
#401D66 #66641D #1E661D
monochromatic
#0F0718 #220F36 #401D66 #5E2B96 #7C38C5

Accessibility & contrast

On white

13.24
#401D66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401D66
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D66#FFFFFF#000000##FFFFFF
##401D661.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F68
Deuteranopia (green-blind)
#002F64
Tritanopia (blue-blind)
#382E3F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401d66;
/* rgb */ color: rgb(64, 29, 102);
/* oklch */ color: oklch(32.3% 0.122 301.9);
Tailwind
colors: {
  custom: {
    50: '#785c92',
    500: '#401d66',
    950: '#000000',
  },
}
SCSS
$custom: #401d66;
$custom-light: #785c92;
$custom-dark: #000000;
JSON
{
  "hex": "#401d66",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 102
  },
  "hsl": {
    "h": 268.767,
    "s": 55.725,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32254,
    "c": 0.12234,
    "h": 301.9
  },
  "luminance": 0.02928
}

Semantic roles & 50–950 ramp

primary
#401D66
secondary
#719B44
accent
#DF4997
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401D66

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

Preview Lab → · Contrast checker → · Palette generator →

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