#401D6A#401D6A

#401D6A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.127 H 300.2°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#401D6A
RGBrgb(64, 29, 106)
HSLhsl(267, 57%, 26%)
HSVhsv(267, 73%, 42%)
CMYKcmyk(39.6%, 72.6%, 0%, 58.4%)
CIE-LABlab(20.08, 33.74, -38.60)
CIE-LCHlch(20.08, 51.26, 311.16°)
OKLaboklab(32.59% 0.064 -0.11)
OKLCHoklch(32.59% 0.127 300.2)
XYZxyz(5.1546, 3.0093, 13.9422)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D6A #476A1D
analogous
#1D216A #401D6A #671D6A
triadic
#401D6A #6A401D #1D6A40
tetradic
#401D6A #6A1D21 #476A1D #1D6A67
square
#401D6A #6A1D21 #476A1D #1D6A67
split-complementary
#401D6A #6A671D #216A1D
monochromatic
#0F0718 #23103A #401D6A #5D2A9A #7A39C9

Accessibility & contrast

On white

13.11
#401D6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401D6A
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D6A#FFFFFF#000000##FFFFFF
##401D6A1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.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: #401d6a;
/* rgb */ color: rgb(64, 29, 106);
/* oklch */ color: oklch(32.6% 0.127 300.2);
Tailwind
colors: {
  custom: {
    50: '#795c95',
    500: '#401d6a',
    950: '#000000',
  },
}
SCSS
$custom: #401d6a;
$custom-light: #795c95;
$custom-dark: #000000;
JSON
{
  "hex": "#401d6a",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 106
  },
  "hsl": {
    "h": 267.273,
    "s": 57.037,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32592,
    "c": 0.12727,
    "h": 300.2
  },
  "luminance": 0.03009
}

Semantic roles & 50–950 ramp

primary
#401D6A
secondary
#769F44
accent
#E0489B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401D6A

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

Preview Lab → · Contrast checker → · Palette generator →

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