#40143E#40143E

#40143E is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.0% C 0.091 H 329.5°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#40143E
RGBrgb(64, 20, 62)
HSLhsl(303, 52%, 16%)
HSVhsv(303, 69%, 25%)
CMYKcmyk(0%, 68.8%, 3.1%, 74.9%)
CIE-LABlab(15.16, 27.71, -16.73)
CIE-LCHlch(15.16, 32.37, 328.88°)
OKLaboklab(28.03% 0.0781 -0.046)
OKLCHoklch(28.03% 0.091 329.5)
XYZxyz(3.2340, 1.9383, 4.7603)
Luminance0.0194 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40143E #144016
analogous
#2C1440 #40143E #401428
triadic
#40143E #3E4014 #143E40
tetradic
#40143E #402C14 #144016 #142840
square
#40143E #402C14 #144016 #142840
split-complementary
#40143E #284014 #14402C
monochromatic
#170717 #170717 #40143E #6F236B #9D3198

Accessibility & contrast

On white

15.13
#40143E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#40143E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40143E
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40143E#FFFFFF#000000##FFFFFF
##40143E1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10223F
Deuteranopia (green-blind)
#1F283D
Tritanopia (blue-blind)
#421926
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #40143e;
/* rgb */ color: rgb(64, 20, 62);
/* oklch */ color: oklch(28.0% 0.091 329.5);
Tailwind
colors: {
  custom: {
    50: '#775573',
    500: '#40143e',
    950: '#000000',
  },
}
SCSS
$custom: #40143e;
$custom-light: #775573;
$custom-dark: #000000;
JSON
{
  "hex": "#40143e",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 62
  },
  "hsl": {
    "h": 302.727,
    "s": 52.381,
    "l": 16.471
  },
  "oklch": {
    "l": 0.28032,
    "c": 0.09066,
    "h": 329.5
  },
  "luminance": 0.01938
}

Semantic roles & 50–950 ramp

primary
#40143E
secondary
#38783B
accent
#DC534C
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #40143E

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

Preview Lab → · Contrast checker → · Palette generator →

#40143E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva