#401EBB#401EBB

#401EBB is a dark, highly saturated violet. Relative luminance 0.056; OKLCH L 40.8% C 0.220 H 280.3°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#401EBB
RGBrgb(64, 30, 187)
HSLhsl(253, 72%, 43%)
HSVhsv(253, 84%, 73%)
CMYKcmyk(65.8%, 84%, 0%, 26.7%)
CIE-LABlab(28.39, 56.27, -75.12)
CIE-LCHlch(28.39, 93.86, 306.84°)
OKLaboklab(40.84% 0.0394 -0.2168)
OKLCHoklch(40.84% 0.22 280.3)
XYZxyz(11.5454, 5.6055, 47.4776)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401EBB #99BB1E
analogous
#1E4ABB #401EBB #8F1EBB
triadic
#401EBB #BB401E #1EBB40
tetradic
#401EBB #BB1E4A #99BB1E #1EBB8F
square
#401EBB #BB1E4A #99BB1E #1EBB8F
split-complementary
#401EBB #BB8F1E #4ABB1E
monochromatic
#1C0D52 #2E1686 #401EBB #5C37DF #876CE7

Accessibility & contrast

On white

9.90
#401EBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#401EBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401EBB
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401EBB#FFFFFF#000000##FFFFFF
##401EBB1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048BF
Deuteranopia (green-blind)
#003DB8
Tritanopia (blue-blind)
#00516F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #401ebb;
/* rgb */ color: rgb(64, 30, 187);
/* oklch */ color: oklch(40.8% 0.220 280.3);
Tailwind
colors: {
  custom: {
    50: '#8661d1',
    500: '#401ebb',
    950: '#000000',
  },
}
SCSS
$custom: #401ebb;
$custom-light: #8661d1;
$custom-dark: #000000;
JSON
{
  "hex": "#401ebb",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 187
  },
  "hsl": {
    "h": 252.994,
    "s": 72.35,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40838,
    "c": 0.22036,
    "h": 280.3
  },
  "luminance": 0.05606
}

Semantic roles & 50–950 ramp

primary
#401EBB
secondary
#B7CD67
accent
#EF39C8
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0514
muted
#7E7A83

Preview Lab

Preview with #401EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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