#40043C#40043C

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

Color values

HEX#40043C
RGBrgb(64, 4, 60)
HSLhsl(304, 88%, 13%)
HSVhsv(304, 94%, 25%)
CMYKcmyk(0%, 93.8%, 6.2%, 74.9%)
CIE-LABlab(12.63, 34.15, -19.31)
CIE-LCHlch(12.63, 39.23, 330.51°)
OKLaboklab(26.17% 0.0976 -0.0533)
OKLCHoklch(26.17% 0.111 331.4)
XYZxyz(2.9734, 1.5033, 4.4077)
Luminance0.0150 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40043C #044008
analogous
#260440 #40043C #40041E
triadic
#40043C #3C4004 #043C40
tetradic
#40043C #402604 #044008 #041E40
square
#40043C #402604 #044008 #041E40
split-complementary
#40043C #1E4004 #044026
monochromatic
#1D021B #1D021B #40043C #7A0872 #B30BA8

Accessibility & contrast

On white

16.15
#40043C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40043C
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40043C#FFFFFF#000000##FFFFFF
##40043C1.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3D
Deuteranopia (green-blind)
#19243B
Tritanopia (blue-blind)
#430C20
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40043c;
/* rgb */ color: rgb(64, 4, 60);
/* oklch */ color: oklch(26.2% 0.111 331.4);
Tailwind
colors: {
  custom: {
    50: '#784e72',
    500: '#40043c',
    950: '#000000',
  },
}
SCSS
$custom: #40043c;
$custom-light: #784e72;
$custom-dark: #000000;
JSON
{
  "hex": "#40043c",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 60
  },
  "hsl": {
    "h": 304,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.26171,
    "c": 0.11123,
    "h": 331.4
  },
  "luminance": 0.01503
}

Semantic roles & 50–950 ramp

primary
#40043C
secondary
#1F8125
accent
#FE3829
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090208
muted
#7B787B

Preview Lab

Preview with #40043C

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

Preview Lab → · Contrast checker → · Palette generator →

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