#40144A#40144A

#40144A is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.8% C 0.103 H 319.7°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#40144A
RGBrgb(64, 20, 74)
HSLhsl(289, 57%, 18%)
HSVhsv(289, 73%, 29%)
CMYKcmyk(13.5%, 73%, 0%, 71%)
CIE-LABlab(15.93, 30.31, -23.87)
CIE-LCHlch(15.93, 38.58, 321.77°)
OKLaboklab(28.84% 0.0787 -0.0667)
OKLCHoklch(28.84% 0.103 319.7)
XYZxyz(3.6004, 2.0849, 6.6900)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40144A #1E4A14
analogous
#25144A #40144A #4A1439
triadic
#40144A #4A4014 #144A40
tetradic
#40144A #4A2514 #1E4A14 #14394A
square
#40144A #4A2514 #1E4A14 #14394A
split-complementary
#40144A #394A14 #144A25
monochromatic
#150718 #16071A #40144A #6A217A #932EAA

Accessibility & contrast

On white

14.82
#40144A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#40144A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40144A
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40144A#FFFFFF#000000##FFFFFF
##40144A1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04254C
Deuteranopia (green-blind)
#182949
Tritanopia (blue-blind)
#401D2D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #40144a;
/* rgb */ color: rgb(64, 20, 74);
/* oklch */ color: oklch(28.8% 0.103 319.7);
Tailwind
colors: {
  custom: {
    50: '#77557d',
    500: '#40144a',
    950: '#000000',
  },
}
SCSS
$custom: #40144a;
$custom-light: #77557d;
$custom-dark: #000000;
JSON
{
  "hex": "#40144a",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 74
  },
  "hsl": {
    "h": 288.889,
    "s": 57.447,
    "l": 18.431
  },
  "oklch": {
    "l": 0.28835,
    "c": 0.10318,
    "h": 319.7
  },
  "luminance": 0.02085
}

Semantic roles & 50–950 ramp

primary
#40144A
secondary
#458238
accent
#E14764
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #40144A

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

Preview Lab → · Contrast checker → · Palette generator →

#40144A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva