#401A8F#401A8F

#401A8F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.174 H 289.0°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#401A8F
RGBrgb(64, 26, 143)
HSLhsl(259, 69%, 33%)
HSVhsv(259, 82%, 56%)
CMYKcmyk(55.2%, 81.8%, 0%, 43.9%)
CIE-LABlab(23.04, 45.62, -57.29)
CIE-LCHlch(23.04, 73.23, 308.53°)
OKLaboklab(35.74% 0.0567 -0.1648)
OKLCHoklch(35.74% 0.174 289)
XYZxyz(7.4402, 3.8116, 26.3249)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A8F #698F1A
analogous
#1A2E8F #401A8F #7A1A8F
triadic
#401A8F #8F401A #1A8F40
tetradic
#401A8F #8F1A2E #698F1A #1A8F7A
square
#401A8F #8F1A2E #698F1A #1A8F7A
split-complementary
#401A8F #8F7A1A #2E8F1A
monochromatic
#120727 #29115B #401A8F #5723C3 #7746DD

Accessibility & contrast

On white

11.92
#401A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#401A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A8F
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A8F#FFFFFF#000000##FFFFFF
##401A8F1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#203D55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #401a8f;
/* rgb */ color: rgb(64, 26, 143);
/* oklch */ color: oklch(35.7% 0.174 289.0);
Tailwind
colors: {
  custom: {
    50: '#7f5cb1',
    500: '#401a8f',
    950: '#000000',
  },
}
SCSS
$custom: #401a8f;
$custom-light: #7f5cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#401a8f",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 259.487,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35736,
    "c": 0.17429,
    "h": 289
  },
  "luminance": 0.03812
}

Semantic roles & 50–950 ramp

primary
#401A8F
secondary
#98BF46
accent
#EC3CB3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #401A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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