#401A6E#401A6E

#401A6E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.136 H 299.3°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#401A6E
RGBrgb(64, 26, 110)
HSLhsl(267, 62%, 27%)
HSVhsv(267, 76%, 43%)
CMYKcmyk(41.8%, 76.4%, 0%, 56.9%)
CIE-LABlab(19.86, 36.42, -41.56)
CIE-LCHlch(19.86, 55.26, 311.23°)
OKLaboklab(32.54% 0.0665 -0.1187)
OKLCHoklch(32.54% 0.136 299.3)
XYZxyz(5.2975, 2.9545, 15.0400)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A6E #486E1A
analogous
#1A1E6E #401A6E #6A1A6E
triadic
#401A6E #6E401A #1A6E40
tetradic
#401A6E #6E1A1E #486E1A #1A6E6A
square
#401A6E #6E1A1E #486E1A #1A6E6A
split-complementary
#401A6E #6E6A1A #1E6E1A
monochromatic
#0E0619 #230E3D #401A6E #5D26A0 #7A34CF

Accessibility & contrast

On white

13.20
#401A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#401A6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A6E
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A6E#FFFFFF#000000##FFFFFF
##401A6E1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#002F6C
Tritanopia (blue-blind)
#352F42
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401a6e;
/* rgb */ color: rgb(64, 26, 110);
/* oklch */ color: oklch(32.5% 0.136 299.3);
Tailwind
colors: {
  custom: {
    50: '#7a5a98',
    500: '#401a6e',
    950: '#000000',
  },
}
SCSS
$custom: #401a6e;
$custom-light: #7a5a98;
$custom-dark: #000000;
JSON
{
  "hex": "#401a6e",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 110
  },
  "hsl": {
    "h": 267.143,
    "s": 61.765,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32542,
    "c": 0.13604,
    "h": 299.3
  },
  "luminance": 0.02955
}

Semantic roles & 50–950 ramp

primary
#401A6E
secondary
#77A341
accent
#E5439C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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