#40033F#40033F

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

Color values

HEX#40033F
RGBrgb(64, 3, 63)
HSLhsl(301, 91%, 13%)
HSVhsv(301, 95%, 25%)
CMYKcmyk(0%, 95.3%, 1.6%, 74.9%)
CIE-LABlab(12.70, 35.09, -21.34)
CIE-LCHlch(12.70, 41.07, 328.70°)
OKLaboklab(26.29% 0.0986 -0.0592)
OKLCHoklch(26.29% 0.115 329)
XYZxyz(3.0441, 1.5142, 4.8336)
Luminance0.0151 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40033F #034004
analogous
#220340 #40033F #400320
triadic
#40033F #3F4003 #033F40
tetradic
#40033F #402203 #034004 #032040
square
#40033F #402203 #034004 #032040
split-complementary
#40033F #204003 #034022
monochromatic
#1D011D #1D011D #40033F #7A0679 #B508B2

Accessibility & contrast

On white

16.12
#40033F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#40033F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40033F
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40033F#FFFFFF#000000##FFFFFF
##40033F1.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)
#001C40
Deuteranopia (green-blind)
#16243E
Tritanopia (blue-blind)
#430D22
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40033f;
/* rgb */ color: rgb(64, 3, 63);
/* oklch */ color: oklch(26.3% 0.115 329.0);
Tailwind
colors: {
  custom: {
    50: '#784d74',
    500: '#40033f',
    950: '#000000',
  },
}
SCSS
$custom: #40033f;
$custom-light: #784d74;
$custom-dark: #000000;
JSON
{
  "hex": "#40033f",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 63
  },
  "hsl": {
    "h": 300.984,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.26286,
    "c": 0.11502,
    "h": 329
  },
  "luminance": 0.01514
}

Semantic roles & 50–950 ramp

primary
#40033F
secondary
#1D821E
accent
#FF2C29
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #40033F

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

Preview Lab → · Contrast checker → · Palette generator →

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