#40053B#40053B

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

Color values

HEX#40053B
RGBrgb(64, 5, 59)
HSLhsl(305, 86%, 14%)
HSVhsv(305, 92%, 25%)
CMYKcmyk(0%, 92.2%, 7.8%, 74.9%)
CIE-LABlab(12.70, 33.57, -18.48)
CIE-LCHlch(12.70, 38.32, 331.16°)
OKLaboklab(26.2% 0.0965 -0.0509)
OKLCHoklch(26.2% 0.109 332.2)
XYZxyz(2.9581, 1.5146, 4.2734)
Luminance0.0151 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40053B #05400A
analogous
#270540 #40053B #40051D
triadic
#40053B #3B4005 #053B40
tetradic
#40053B #402705 #05400A #051D40
square
#40053B #402705 #05400A #051D40
split-complementary
#40053B #1D4005 #054027
monochromatic
#1C021A #1C021A #40053B #79096F #B20EA4

Accessibility & contrast

On white

16.12
#40053B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#40053B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40053B
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40053B#FFFFFF#000000##FFFFFF
##40053B1.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)
#011C3C
Deuteranopia (green-blind)
#1A243A
Tritanopia (blue-blind)
#430C20
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40053b;
/* rgb */ color: rgb(64, 5, 59);
/* oklch */ color: oklch(26.2% 0.109 332.2);
Tailwind
colors: {
  custom: {
    50: '#784e71',
    500: '#40053b',
    950: '#000000',
  },
}
SCSS
$custom: #40053b;
$custom-light: #784e71;
$custom-dark: #000000;
JSON
{
  "hex": "#40053b",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 59
  },
  "hsl": {
    "h": 305.085,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.262,
    "c": 0.1091,
    "h": 332.2
  },
  "luminance": 0.01514
}

Semantic roles & 50–950 ramp

primary
#40053B
secondary
#208128
accent
#FC3E2C
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #40053B

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

Preview Lab → · Contrast checker → · Palette generator →

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