#40043A#40043A

#40043A is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.0% C 0.110 H 333.0°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#40043A
RGBrgb(64, 4, 58)
HSLhsl(306, 88%, 13%)
HSVhsv(306, 94%, 25%)
CMYKcmyk(0%, 93.8%, 9.4%, 74.9%)
CIE-LABlab(12.50, 33.79, -18.09)
CIE-LCHlch(12.50, 38.33, 331.84°)
OKLaboklab(26.03% 0.0977 -0.0498)
OKLCHoklch(26.03% 0.11 333)
XYZxyz(2.9215, 1.4826, 4.1345)
Luminance0.0148 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40043A #04400A
analogous
#280440 #40043A #40041C
triadic
#40043A #3A4004 #043A40
tetradic
#40043A #402804 #04400A #041C40
square
#40043A #402804 #04400A #041C40
split-complementary
#40043A #1C4004 #044028
monochromatic
#1D021A #1D021A #40043A #7A086E #B30BA2

Accessibility & contrast

On white

16.20
#40043A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40043A
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40043A#FFFFFF#000000##FFFFFF
##40043A1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011B3B
Deuteranopia (green-blind)
#1A2339
Tritanopia (blue-blind)
#430B1F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #40043a;
/* rgb */ color: rgb(64, 4, 58);
/* oklch */ color: oklch(26.0% 0.110 333.0);
Tailwind
colors: {
  custom: {
    50: '#784d70',
    500: '#40043a',
    950: '#000000',
  },
}
SCSS
$custom: #40043a;
$custom-light: #784d70;
$custom-dark: #000000;
JSON
{
  "hex": "#40043a",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 58
  },
  "hsl": {
    "h": 306,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.26034,
    "c": 0.10961,
    "h": 333
  },
  "luminance": 0.01482
}

Semantic roles & 50–950 ramp

primary
#40043A
secondary
#1F8128
accent
#FE3F29
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #40043A

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

Preview Lab → · Contrast checker → · Palette generator →

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