#401CAF#401CAF

#401CAF is a dark, highly saturated violet. Relative luminance 0.050; OKLCH L 39.3% C 0.209 H 282.3°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#401CAF
RGBrgb(64, 28, 175)
HSLhsl(255, 72%, 40%)
HSVhsv(255, 84%, 69%)
CMYKcmyk(63.4%, 84%, 0%, 31.4%)
CIE-LABlab(26.78, 53.73, -70.64)
CIE-LCHlch(26.78, 88.75, 307.25°)
OKLaboklab(39.34% 0.0444 -0.2038)
OKLCHoklch(39.34% 0.209 282.3)
XYZxyz(10.2651, 5.0149, 40.9762)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401CAF #8BAF1C
analogous
#1C41AF #401CAF #8A1CAF
triadic
#401CAF #AF401C #1CAF40
tetradic
#401CAF #AF1C41 #8BAF1C #1CAF8A
square
#401CAF #AF1C41 #8BAF1C #1CAF8A
split-complementary
#401CAF #AF8A1C #41AF1C
monochromatic
#190B45 #2D147A #401CAF #572BDD #8160E6

Accessibility & contrast

On white

10.48
#401CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#401CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401CAF
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401CAF#FFFFFF#000000##FFFFFF
##401CAF1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B3
Deuteranopia (green-blind)
#003AAD
Tritanopia (blue-blind)
#004B68
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #401caf;
/* rgb */ color: rgb(64, 28, 175);
/* oklch */ color: oklch(39.3% 0.209 282.3);
Tailwind
colors: {
  custom: {
    50: '#8460c8',
    500: '#401caf',
    950: '#000000',
  },
}
SCSS
$custom: #401caf;
$custom-light: #8460c8;
$custom-dark: #000000;
JSON
{
  "hex": "#401caf",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 175
  },
  "hsl": {
    "h": 254.694,
    "s": 72.414,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39335,
    "c": 0.20855,
    "h": 282.3
  },
  "luminance": 0.05016
}

Semantic roles & 50–950 ramp

primary
#401CAF
secondary
#AFCA5D
accent
#EF39C2
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #401CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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