#401CBB#401CBB

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

Color values

HEX#401CBB
RGBrgb(64, 28, 187)
HSLhsl(254, 74%, 42%)
HSVhsv(254, 85%, 73%)
CMYKcmyk(65.8%, 85%, 0%, 26.7%)
CIE-LABlab(28.13, 57.04, -75.55)
CIE-LCHlch(28.13, 94.67, 307.05°)
OKLaboklab(40.66% 0.0402 -0.218)
OKLCHoklch(40.66% 0.222 280.4)
XYZxyz(11.4964, 5.5074, 47.4613)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401CBB #97BB1C
analogous
#1C48BB #401CBB #901CBB
triadic
#401CBB #BB401C #1CBB40
tetradic
#401CBB #BB1C48 #97BB1C #1CBB90
square
#401CBB #BB1C48 #97BB1C #1CBB90
split-complementary
#401CBB #BB901C #48BB1C
monochromatic
#1C0C51 #2E1486 #401CBB #5B34E1 #8669E9

Accessibility & contrast

On white

9.99
#401CBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#401CBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401CBB
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401CBB#FFFFFF#000000##FFFFFF
##401CBB1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401cbb;
/* rgb */ color: rgb(64, 28, 187);
/* oklch */ color: oklch(40.7% 0.222 280.4);
Tailwind
colors: {
  custom: {
    50: '#8760d1',
    500: '#401cbb',
    950: '#000000',
  },
}
SCSS
$custom: #401cbb;
$custom-light: #8760d1;
$custom-dark: #000000;
JSON
{
  "hex": "#401cbb",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 187
  },
  "hsl": {
    "h": 253.585,
    "s": 73.953,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4066,
    "c": 0.22171,
    "h": 280.4
  },
  "luminance": 0.05508
}

Semantic roles & 50–950 ramp

primary
#401CBB
secondary
#B6CE65
accent
#F137C7
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0514
muted
#7E7A83

Preview Lab

Preview with #401CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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