#401A6C#401A6C

#401A6C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.134 H 300.0°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#401A6C
RGBrgb(64, 26, 108)
HSLhsl(268, 61%, 26%)
HSVhsv(268, 76%, 42%)
CMYKcmyk(40.7%, 75.9%, 0%, 57.6%)
CIE-LABlab(19.69, 35.87, -40.54)
CIE-LCHlch(19.69, 54.13, 311.50°)
OKLaboklab(32.36% 0.0669 -0.1157)
OKLCHoklch(32.36% 0.134 300)
XYZxyz(5.1898, 2.9114, 14.4730)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A6C #466C1A
analogous
#1A1D6C #401A6C #691A6C
triadic
#401A6C #6C401A #1A6C40
tetradic
#401A6C #6C1A1D #466C1A #1A6C69
square
#401A6C #6C1A1D #466C1A #1A6C69
split-complementary
#401A6C #6C691A #1D6C1A
monochromatic
#0F0619 #230E3B #401A6C #5D269D #7B33CE

Accessibility & contrast

On white

13.27
#401A6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#401A6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A6C
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A6C#FFFFFF#000000##FFFFFF
##401A6C1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#002F6A
Tritanopia (blue-blind)
#362E41
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401a6c;
/* rgb */ color: rgb(64, 26, 108);
/* oklch */ color: oklch(32.4% 0.134 300.0);
Tailwind
colors: {
  custom: {
    50: '#795a97',
    500: '#401a6c',
    950: '#000000',
  },
}
SCSS
$custom: #401a6c;
$custom-light: #795a97;
$custom-dark: #000000;
JSON
{
  "hex": "#401a6c",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 108
  },
  "hsl": {
    "h": 267.805,
    "s": 61.194,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32364,
    "c": 0.13367,
    "h": 300
  },
  "luminance": 0.02911
}

Semantic roles & 50–950 ramp

primary
#401A6C
secondary
#74A141
accent
#E4439A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #401A6C

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

Preview Lab → · Contrast checker → · Palette generator →

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