#401D6B#401D6B

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

Color values

HEX#401D6B
RGBrgb(64, 29, 107)
HSLhsl(267, 57%, 27%)
HSVhsv(267, 73%, 42%)
CMYKcmyk(40.2%, 72.9%, 0%, 58%)
CIE-LABlab(20.16, 34.02, -39.11)
CIE-LCHlch(20.16, 51.84, 311.01°)
OKLaboklab(32.68% 0.0638 -0.1115)
OKLCHoklch(32.68% 0.129 299.8)
XYZxyz(5.2069, 3.0302, 14.2176)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D6B #486B1D
analogous
#1D216B #401D6B #671D6B
triadic
#401D6B #6B401D #1D6B40
tetradic
#401D6B #6B1D21 #486B1D #1D6B67
square
#401D6B #6B1D21 #486B1D #1D6B67
split-complementary
#401D6B #6B671D #216B1D
monochromatic
#0E0718 #23103B #401D6B #5D2A9B #7A39C9

Accessibility & contrast

On white

13.08
#401D6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401D6B
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D6B#FFFFFF#000000##FFFFFF
##401D6B1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#003069
Tritanopia (blue-blind)
#363041
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401d6b;
/* rgb */ color: rgb(64, 29, 107);
/* oklch */ color: oklch(32.7% 0.129 299.8);
Tailwind
colors: {
  custom: {
    50: '#795c96',
    500: '#401d6b',
    950: '#000000',
  },
}
SCSS
$custom: #401d6b;
$custom-light: #795c96;
$custom-dark: #000000;
JSON
{
  "hex": "#401d6b",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 107
  },
  "hsl": {
    "h": 266.923,
    "s": 57.353,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32678,
    "c": 0.1285,
    "h": 299.8
  },
  "luminance": 0.0303
}

Semantic roles & 50–950 ramp

primary
#401D6B
secondary
#77A044
accent
#E1479C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401D6B

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

Preview Lab → · Contrast checker → · Palette generator →

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