#401DBB#401DBB

#401DBB is a dark, highly saturated violet. Relative luminance 0.056; OKLCH L 40.7% C 0.221 H 280.4°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#401DBB
RGBrgb(64, 29, 187)
HSLhsl(253, 73%, 42%)
HSVhsv(253, 84%, 73%)
CMYKcmyk(65.8%, 84.5%, 0%, 26.7%)
CIE-LABlab(28.26, 56.66, -75.34)
CIE-LCHlch(28.26, 94.27, 306.95°)
OKLaboklab(40.75% 0.0398 -0.2174)
OKLCHoklch(40.75% 0.221 280.4)
XYZxyz(11.5205, 5.5556, 47.4693)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401DBB #98BB1D
analogous
#1D49BB #401DBB #8F1DBB
triadic
#401DBB #BB401D #1DBB40
tetradic
#401DBB #BB1D49 #98BB1D #1DBB8F
square
#401DBB #BB1D49 #98BB1D #1DBB8F
split-complementary
#401DBB #BB8F1D #49BB1D
monochromatic
#1C0D51 #2E1586 #401DBB #5B35E0 #866AE8

Accessibility & contrast

On white

9.95
#401DBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#401DBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401DBB
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401DBB#FFFFFF#000000##FFFFFF
##401DBB1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401dbb;
/* rgb */ color: rgb(64, 29, 187);
/* oklch */ color: oklch(40.7% 0.221 280.4);
Tailwind
colors: {
  custom: {
    50: '#8761d1',
    500: '#401dbb',
    950: '#000000',
  },
}
SCSS
$custom: #401dbb;
$custom-light: #8761d1;
$custom-dark: #000000;
JSON
{
  "hex": "#401dbb",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 187
  },
  "hsl": {
    "h": 253.291,
    "s": 73.148,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40748,
    "c": 0.22105,
    "h": 280.4
  },
  "luminance": 0.05557
}

Semantic roles & 50–950 ramp

primary
#401DBB
secondary
#B7CE66
accent
#F038C7
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0514
muted
#7E7A83

Preview Lab

Preview with #401DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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