#401EA6#401EA6

#401EA6 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.197 H 283.6°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#401EA6
RGBrgb(64, 30, 166)
HSLhsl(255, 69%, 38%)
HSVhsv(255, 82%, 65%)
CMYKcmyk(61.4%, 81.9%, 0%, 34.9%)
CIE-LABlab(26.07, 50.36, -66.38)
CIE-LCHlch(26.07, 83.33, 307.19°)
OKLaboklab(38.56% 0.0465 -0.1914)
OKLCHoklch(38.56% 0.197 283.6)
XYZxyz(9.4594, 4.7711, 36.4914)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401EA6 #84A61E
analogous
#1E40A6 #401EA6 #841EA6
triadic
#401EA6 #A6401E #1EA640
tetradic
#401EA6 #A61E40 #84A61E #1EA684
square
#401EA6 #A61E40 #84A61E #1EA684
split-complementary
#401EA6 #A6841E #40A61E
monochromatic
#180B3E #2C1572 #401EA6 #5529D8 #7E5DE2

Accessibility & contrast

On white

10.74
#401EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#401EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401EA6
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401EA6#FFFFFF#000000##FFFFFF
##401EA61.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AA
Deuteranopia (green-blind)
#0039A4
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #401ea6;
/* rgb */ color: rgb(64, 30, 166);
/* oklch */ color: oklch(38.6% 0.197 283.6);
Tailwind
colors: {
  custom: {
    50: '#8260c2',
    500: '#401ea6',
    950: '#000000',
  },
}
SCSS
$custom: #401ea6;
$custom-light: #8260c2;
$custom-dark: #000000;
JSON
{
  "hex": "#401ea6",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 255,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38559,
    "c": 0.19696,
    "h": 283.6
  },
  "luminance": 0.04772
}

Semantic roles & 50–950 ramp

primary
#401EA6
secondary
#ABC65A
accent
#EC3CC0
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #401EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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