#40053E#40053E

#40053E is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.4% C 0.112 H 329.8°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#40053E
RGBrgb(64, 5, 62)
HSLhsl(302, 86%, 14%)
HSVhsv(302, 92%, 25%)
CMYKcmyk(0%, 92.2%, 3.1%, 74.9%)
CIE-LABlab(12.90, 34.11, -20.30)
CIE-LCHlch(12.90, 39.69, 329.24°)
OKLaboklab(26.41% 0.0964 -0.0562)
OKLCHoklch(26.41% 0.112 329.8)
XYZxyz(3.0381, 1.5466, 4.6950)
Luminance0.0155 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40053E #054007
analogous
#240540 #40053E #400520
triadic
#40053E #3E4005 #053E40
tetradic
#40053E #402405 #054007 #052040
square
#40053E #402405 #054007 #052040
split-complementary
#40053E #204005 #054024
monochromatic
#1C021B #1C021B #40053E #790975 #B20EAC

Accessibility & contrast

On white

16.04
#40053E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#40053E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40053E
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40053E#FFFFFF#000000##FFFFFF
##40053E1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3F
Deuteranopia (green-blind)
#18243D
Tritanopia (blue-blind)
#430E22
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40053e;
/* rgb */ color: rgb(64, 5, 62);
/* oklch */ color: oklch(26.4% 0.112 329.8);
Tailwind
colors: {
  custom: {
    50: '#784e73',
    500: '#40053e',
    950: '#000000',
  },
}
SCSS
$custom: #40053e;
$custom-light: #784e73;
$custom-dark: #000000;
JSON
{
  "hex": "#40053e",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 62
  },
  "hsl": {
    "h": 302.034,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.26407,
    "c": 0.11159,
    "h": 329.8
  },
  "luminance": 0.01546
}

Semantic roles & 50–950 ramp

primary
#40053E
secondary
#208124
accent
#FC332C
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #40053E

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

Preview Lab → · Contrast checker → · Palette generator →

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