#40043B#40043B

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

Color values

HEX#40043B
RGBrgb(64, 4, 59)
HSLhsl(305, 88%, 13%)
HSVhsv(305, 94%, 25%)
CMYKcmyk(0%, 93.8%, 7.8%, 74.9%)
CIE-LABlab(12.56, 33.97, -18.70)
CIE-LCHlch(12.56, 38.78, 331.16°)
OKLaboklab(26.1% 0.0977 -0.0516)
OKLCHoklch(26.1% 0.11 332.2)
XYZxyz(2.9472, 1.4928, 4.2698)
Luminance0.0149 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40043B #044009
analogous
#270440 #40043B #40041D
triadic
#40043B #3B4004 #043B40
tetradic
#40043B #402704 #044009 #041D40
square
#40043B #402704 #044009 #041D40
split-complementary
#40043B #1D4004 #044027
monochromatic
#1D021B #1D021B #40043B #7A0870 #B30BA5

Accessibility & contrast

On white

16.17
#40043B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40043B
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40043B#FFFFFF#000000##FFFFFF
##40043B1.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40043b;
/* rgb */ color: rgb(64, 4, 59);
/* oklch */ color: oklch(26.1% 0.110 332.2);
Tailwind
colors: {
  custom: {
    50: '#784e71',
    500: '#40043b',
    950: '#000000',
  },
}
SCSS
$custom: #40043b;
$custom-light: #784e71;
$custom-dark: #000000;
JSON
{
  "hex": "#40043b",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 59
  },
  "hsl": {
    "h": 305,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.26102,
    "c": 0.11043,
    "h": 332.2
  },
  "luminance": 0.01493
}

Semantic roles & 50–950 ramp

primary
#40043B
secondary
#1F8127
accent
#FE3B29
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #40043B

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

Preview Lab → · Contrast checker → · Palette generator →

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