#40144D#40144D

#40144D is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.1% C 0.106 H 317.6°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#40144D
RGBrgb(64, 20, 77)
HSLhsl(286, 59%, 19%)
HSVhsv(286, 74%, 30%)
CMYKcmyk(16.9%, 74%, 0%, 69.8%)
CIE-LABlab(16.14, 31.00, -25.60)
CIE-LCHlch(16.14, 40.20, 320.45°)
OKLaboklab(29.05% 0.0786 -0.0718)
OKLCHoklch(29.05% 0.106 317.6)
XYZxyz(3.7039, 2.1263, 7.2350)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40144D #214D14
analogous
#24144D #40144D #4D143E
triadic
#40144D #4D4014 #144D40
tetradic
#40144D #4D2414 #214D14 #143E4D
square
#40144D #4D2414 #214D14 #143E4D
split-complementary
#40144D #3E4D14 #144D24
monochromatic
#140618 #18071C #40144D #68217E #912DAE

Accessibility & contrast

On white

14.73
#40144D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40144D
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40144D#FFFFFF#000000##FFFFFF
##40144D1.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00254F
Deuteranopia (green-blind)
#16294C
Tritanopia (blue-blind)
#401F2E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #40144d;
/* rgb */ color: rgb(64, 20, 77);
/* oklch */ color: oklch(29.1% 0.106 317.6);
Tailwind
colors: {
  custom: {
    50: '#77567f',
    500: '#40144d',
    950: '#000000',
  },
}
SCSS
$custom: #40144d;
$custom-light: #77567f;
$custom-dark: #000000;
JSON
{
  "hex": "#40144d",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 77
  },
  "hsl": {
    "h": 286.316,
    "s": 58.763,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29053,
    "c": 0.10644,
    "h": 317.6
  },
  "luminance": 0.02126
}

Semantic roles & 50–950 ramp

primary
#40144D
secondary
#498538
accent
#E24669
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40144D

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

Preview Lab → · Contrast checker → · Palette generator →

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