#40144F#40144F

#40144F is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.2% C 0.109 H 316.2°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#40144F
RGBrgb(64, 20, 79)
HSLhsl(285, 60%, 19%)
HSVhsv(285, 75%, 31%)
CMYKcmyk(19%, 74.7%, 0%, 69%)
CIE-LABlab(16.28, 31.46, -26.74)
CIE-LCHlch(16.28, 41.29, 319.64°)
OKLaboklab(29.2% 0.0785 -0.0751)
OKLCHoklch(29.2% 0.109 316.2)
XYZxyz(3.7756, 2.1550, 7.6127)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40144F #234F14
analogous
#23144F #40144F #4F1441
triadic
#40144F #4F4014 #144F40
tetradic
#40144F #4F2314 #234F14 #14414F
square
#40144F #4F2314 #234F14 #14414F
split-complementary
#40144F #414F14 #144F23
monochromatic
#140618 #18081E #40144F #682080 #8F2DB1

Accessibility & contrast

On white

14.68
#40144F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#40144F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40144F
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40144F#FFFFFF#000000##FFFFFF
##40144F1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#142A4E
Tritanopia (blue-blind)
#3F1F2F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #40144f;
/* rgb */ color: rgb(64, 20, 79);
/* oklch */ color: oklch(29.2% 0.109 316.2);
Tailwind
colors: {
  custom: {
    50: '#775681',
    500: '#40144f',
    950: '#000000',
  },
}
SCSS
$custom: #40144f;
$custom-light: #775681;
$custom-dark: #000000;
JSON
{
  "hex": "#40144f",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 79
  },
  "hsl": {
    "h": 284.746,
    "s": 59.596,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29203,
    "c": 0.10862,
    "h": 316.2
  },
  "luminance": 0.02155
}

Semantic roles & 50–950 ramp

primary
#40144F
secondary
#4C8738
accent
#E3456D
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40144F

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

Preview Lab → · Contrast checker → · Palette generator →

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