#401CB3#401CB3

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

Color values

HEX#401CB3
RGBrgb(64, 28, 179)
HSLhsl(254, 73%, 41%)
HSVhsv(254, 84%, 70%)
CMYKcmyk(64.2%, 84.4%, 0%, 29.8%)
CIE-LABlab(27.23, 54.83, -72.29)
CIE-LCHlch(27.23, 90.74, 307.18°)
OKLaboklab(39.77% 0.043 -0.2086)
OKLCHoklch(39.77% 0.213 281.6)
XYZxyz(10.6637, 5.1744, 43.0759)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401CB3 #8FB31C
analogous
#1C43B3 #401CB3 #8C1CB3
triadic
#401CB3 #B3401C #1CB340
tetradic
#401CB3 #B31C43 #8FB31C #1CB38C
square
#401CB3 #B31C43 #8FB31C #1CB38C
split-complementary
#401CB3 #B38C1C #43B31C
monochromatic
#1A0B49 #2D147E #401CB3 #582EDE #8263E7

Accessibility & contrast

On white

10.32
#401CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#401CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401CB3
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401CB3#FFFFFF#000000##FFFFFF
##401CB31.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B7
Deuteranopia (green-blind)
#003BB0
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #401cb3;
/* rgb */ color: rgb(64, 28, 179);
/* oklch */ color: oklch(39.8% 0.213 281.6);
Tailwind
colors: {
  custom: {
    50: '#8560cb',
    500: '#401cb3',
    950: '#000000',
  },
}
SCSS
$custom: #401cb3;
$custom-light: #8560cb;
$custom-dark: #000000;
JSON
{
  "hex": "#401cb3",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 179
  },
  "hsl": {
    "h": 254.305,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39774,
    "c": 0.21295,
    "h": 281.6
  },
  "luminance": 0.05175
}

Semantic roles & 50–950 ramp

primary
#401CB3
secondary
#B2CB5F
accent
#F038C4
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0D0513
muted
#7D7982

Preview Lab

Preview with #401CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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