#401D6C#401D6C

#401D6C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.8% C 0.130 H 299.4°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#401D6C
RGBrgb(64, 29, 108)
HSLhsl(267, 58%, 27%)
HSVhsv(267, 73%, 42%)
CMYKcmyk(40.7%, 73.1%, 0%, 57.6%)
CIE-LABlab(20.25, 34.29, -39.63)
CIE-LCHlch(20.25, 52.41, 310.87°)
OKLaboklab(32.76% 0.0636 -0.113)
OKLCHoklch(32.76% 0.13 299.4)
XYZxyz(5.2598, 3.0514, 14.4963)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D6C #496C1D
analogous
#1D226C #401D6C #681D6C
triadic
#401D6C #6C401D #1D6C40
tetradic
#401D6C #6C1D22 #496C1D #1D6C68
square
#401D6C #6C1D22 #496C1D #1D6C68
split-complementary
#401D6C #6C681D #226C1D
monochromatic
#0E0618 #23103C #401D6C #5D2A9C #7939CA

Accessibility & contrast

On white

13.04
#401D6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#401D6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D6C
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D6C#FFFFFF#000000##FFFFFF
##401D6C1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#00306A
Tritanopia (blue-blind)
#363042
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401d6c;
/* rgb */ color: rgb(64, 29, 108);
/* oklch */ color: oklch(32.8% 0.130 299.4);
Tailwind
colors: {
  custom: {
    50: '#795c97',
    500: '#401d6c',
    950: '#000000',
  },
}
SCSS
$custom: #401d6c;
$custom-light: #795c97;
$custom-dark: #000000;
JSON
{
  "hex": "#401d6c",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 108
  },
  "hsl": {
    "h": 266.582,
    "s": 57.664,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32764,
    "c": 0.12972,
    "h": 299.4
  },
  "luminance": 0.03051
}

Semantic roles & 50–950 ramp

primary
#401D6C
secondary
#78A144
accent
#E1479D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401D6C

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

Preview Lab → · Contrast checker → · Palette generator →

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