#401A6F#401A6F

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

Color values

HEX#401A6F
RGBrgb(64, 26, 111)
HSLhsl(267, 62%, 27%)
HSVhsv(267, 77%, 44%)
CMYKcmyk(42.3%, 76.6%, 0%, 56.5%)
CIE-LABlab(19.95, 36.69, -42.06)
CIE-LCHlch(19.95, 55.82, 311.10°)
OKLaboklab(32.63% 0.0663 -0.1202)
OKLCHoklch(32.63% 0.137 298.9)
XYZxyz(5.3523, 2.9764, 15.3284)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A6F #496F1A
analogous
#1A1E6F #401A6F #6B1A6F
triadic
#401A6F #6F401A #1A6F40
tetradic
#401A6F #6F1A1E #496F1A #1A6F6B
square
#401A6F #6F1A1E #496F1A #1A6F6B
split-complementary
#401A6F #6F6B1A #1E6F1A
monochromatic
#0E0619 #230E3D #401A6F #5D26A1 #7934CF

Accessibility & contrast

On white

13.16
#401A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401A6F
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A6F#FFFFFF#000000##FFFFFF
##401A6F1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#002F6D
Tritanopia (blue-blind)
#353043
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401a6f;
/* rgb */ color: rgb(64, 26, 111);
/* oklch */ color: oklch(32.6% 0.137 298.9);
Tailwind
colors: {
  custom: {
    50: '#7a5a99',
    500: '#401a6f',
    950: '#000000',
  },
}
SCSS
$custom: #401a6f;
$custom-light: #7a5a99;
$custom-dark: #000000;
JSON
{
  "hex": "#401a6f",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 111
  },
  "hsl": {
    "h": 266.824,
    "s": 62.044,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32632,
    "c": 0.13722,
    "h": 298.9
  },
  "luminance": 0.02976
}

Semantic roles & 50–950 ramp

primary
#401A6F
secondary
#78A441
accent
#E5439C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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