#40043F#40043F

#40043F is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.4% C 0.114 H 329.0°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#40043F
RGBrgb(64, 4, 63)
HSLhsl(301, 88%, 13%)
HSVhsv(301, 94%, 25%)
CMYKcmyk(0%, 93.8%, 1.6%, 74.9%)
CIE-LABlab(12.83, 34.69, -21.12)
CIE-LCHlch(12.83, 40.61, 328.66°)
OKLaboklab(26.38% 0.0975 -0.0586)
OKLCHoklch(26.38% 0.114 329)
XYZxyz(3.0549, 1.5359, 4.8372)
Luminance0.0154 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40043F #044005
analogous
#230440 #40043F #400421
triadic
#40043F #3F4004 #043F40
tetradic
#40043F #402304 #044005 #042140
square
#40043F #402304 #044005 #042140
split-complementary
#40043F #214004 #044023
monochromatic
#1D021C #1D021C #40043F #7A0878 #B30BB0

Accessibility & contrast

On white

16.06
#40043F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#40043F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40043F
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40043F#FFFFFF#000000##FFFFFF
##40043F1.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C40
Deuteranopia (green-blind)
#17243E
Tritanopia (blue-blind)
#430E22
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40043f;
/* rgb */ color: rgb(64, 4, 63);
/* oklch */ color: oklch(26.4% 0.114 329.0);
Tailwind
colors: {
  custom: {
    50: '#784e74',
    500: '#40043f',
    950: '#000000',
  },
}
SCSS
$custom: #40043f;
$custom-light: #784e74;
$custom-dark: #000000;
JSON
{
  "hex": "#40043f",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 63
  },
  "hsl": {
    "h": 301,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.26382,
    "c": 0.11373,
    "h": 329
  },
  "luminance": 0.01536
}

Semantic roles & 50–950 ramp

primary
#40043F
secondary
#1F8120
accent
#FE2D29
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #40043F

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

Preview Lab → · Contrast checker → · Palette generator →

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