#401454#401454

#401454 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.6% C 0.114 H 313.1°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#401454
RGBrgb(64, 20, 84)
HSLhsl(281, 62%, 20%)
HSVhsv(281, 76%, 33%)
CMYKcmyk(23.8%, 76.2%, 0%, 67.1%)
CIE-LABlab(16.65, 32.66, -29.54)
CIE-LCHlch(16.65, 44.03, 317.87°)
OKLaboklab(29.59% 0.078 -0.0833)
OKLCHoklch(29.59% 0.114 313.1)
XYZxyz(3.9645, 2.2305, 8.6075)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401454 #285414
analogous
#201454 #401454 #541448
triadic
#401454 #544014 #145440
tetradic
#401454 #542014 #285414 #144854
square
#401454 #542014 #285414 #144854
split-complementary
#401454 #485414 #145420
monochromatic
#130619 #1A0823 #401454 #662085 #8B2CB7

Accessibility & contrast

On white

14.52
#401454 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#401454 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401454
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401454#FFFFFF#000000##FFFFFF
##4014541.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002756
Deuteranopia (green-blind)
#0F2A53
Tritanopia (blue-blind)
#3E2132
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401454;
/* rgb */ color: rgb(64, 20, 84);
/* oklch */ color: oklch(29.6% 0.114 313.1);
Tailwind
colors: {
  custom: {
    50: '#785684',
    500: '#401454',
    950: '#000000',
  },
}
SCSS
$custom: #401454;
$custom-light: #785684;
$custom-dark: #000000;
JSON
{
  "hex": "#401454",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 84
  },
  "hsl": {
    "h": 281.25,
    "s": 61.538,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29588,
    "c": 0.11412,
    "h": 313.1
  },
  "luminance": 0.0223
}

Semantic roles & 50–950 ramp

primary
#401454
secondary
#528C38
accent
#E54376
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401454

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

Preview Lab → · Contrast checker → · Palette generator →

#401454 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva