#401BB4#401BB4

#401BB4 is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 39.8% C 0.215 H 281.6°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#401BB4
RGBrgb(64, 27, 180)
HSLhsl(255, 74%, 41%)
HSVhsv(255, 85%, 71%)
CMYKcmyk(64.4%, 85%, 0%, 29.4%)
CIE-LABlab(27.21, 55.50, -72.92)
CIE-LCHlch(27.21, 91.63, 307.27°)
OKLaboklab(39.8% 0.043 -0.2104)
OKLCHoklch(39.8% 0.215 281.6)
XYZxyz(10.7419, 5.1683, 43.6027)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401BB4 #8FB41B
analogous
#1B42B4 #401BB4 #8C1BB4
triadic
#401BB4 #B4401B #1BB440
tetradic
#401BB4 #B41B42 #8FB41B #1BB48C
square
#401BB4 #B41B42 #8FB41B #1BB48C
split-complementary
#401BB4 #B48C1B #42B41B
monochromatic
#1A0B4A #2D137F #401BB4 #582DDF #8262E7

Accessibility & contrast

On white

10.33
#401BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#401BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401BB4
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401BB4#FFFFFF#000000##FFFFFF
##401BB41.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B8
Deuteranopia (green-blind)
#003BB1
Tritanopia (blue-blind)
#004D6B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #401bb4;
/* rgb */ color: rgb(64, 27, 180);
/* oklch */ color: oklch(39.8% 0.215 281.6);
Tailwind
colors: {
  custom: {
    50: '#855fcc',
    500: '#401bb4',
    950: '#000000',
  },
}
SCSS
$custom: #401bb4;
$custom-light: #855fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#401bb4",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 180
  },
  "hsl": {
    "h": 254.51,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39795,
    "c": 0.21474,
    "h": 281.6
  },
  "luminance": 0.05169
}

Semantic roles & 50–950 ramp

primary
#401BB4
secondary
#B2CC5F
accent
#F137C4
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0D0514
muted
#7D7982

Preview Lab

Preview with #401BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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