#40043D#40043D

#40043D is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.2% C 0.112 H 330.6°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#40043D
RGBrgb(64, 4, 61)
HSLhsl(303, 88%, 13%)
HSVhsv(303, 94%, 25%)
CMYKcmyk(0%, 93.8%, 4.7%, 74.9%)
CIE-LABlab(12.70, 34.32, -19.92)
CIE-LCHlch(12.70, 39.68, 329.87°)
OKLaboklab(26.24% 0.0976 -0.0551)
OKLCHoklch(26.24% 0.112 330.6)
XYZxyz(3.0001, 1.5140, 4.5482)
Luminance0.0151 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40043D #044007
analogous
#250440 #40043D #40041F
triadic
#40043D #3D4004 #043D40
tetradic
#40043D #402504 #044007 #041F40
square
#40043D #402504 #044007 #041F40
split-complementary
#40043D #1F4004 #044025
monochromatic
#1D021B #1D021B #40043D #7A0874 #B30BAB

Accessibility & contrast

On white

16.12
#40043D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#40043D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40043D
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40043D#FFFFFF#000000##FFFFFF
##40043D1.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3E
Deuteranopia (green-blind)
#18243C
Tritanopia (blue-blind)
#430D21
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40043d;
/* rgb */ color: rgb(64, 4, 61);
/* oklch */ color: oklch(26.2% 0.112 330.6);
Tailwind
colors: {
  custom: {
    50: '#784e73',
    500: '#40043d',
    950: '#000000',
  },
}
SCSS
$custom: #40043d;
$custom-light: #784e73;
$custom-dark: #000000;
JSON
{
  "hex": "#40043d",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 61
  },
  "hsl": {
    "h": 303,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.2624,
    "c": 0.11206,
    "h": 330.6
  },
  "luminance": 0.01514
}

Semantic roles & 50–950 ramp

primary
#40043D
secondary
#1F8123
accent
#FE3429
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090208
muted
#7B787B

Preview Lab

Preview with #40043D

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

Preview Lab → · Contrast checker → · Palette generator →

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