#40033E#40033E

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

Color values

HEX#40033E
RGBrgb(64, 3, 62)
HSLhsl(302, 91%, 13%)
HSVhsv(302, 95%, 25%)
CMYKcmyk(0%, 95.3%, 3.1%, 74.9%)
CIE-LABlab(12.63, 34.90, -20.74)
CIE-LCHlch(12.63, 40.60, 329.28°)
OKLaboklab(26.21% 0.0987 -0.0575)
OKLCHoklch(26.21% 0.114 329.8)
XYZxyz(3.0164, 1.5032, 4.6878)
Luminance0.0150 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40033E #034005
analogous
#230340 #40033E #40031F
triadic
#40033E #3E4003 #033E40
tetradic
#40033E #402303 #034005 #031F40
square
#40033E #402303 #034005 #031F40
split-complementary
#40033E #1F4003 #034023
monochromatic
#1D011C #1D011C #40033E #7A0677 #B508AF

Accessibility & contrast

On white

16.15
#40033E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40033E
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40033E#FFFFFF#000000##FFFFFF
##40033E1.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)
#001C3F
Deuteranopia (green-blind)
#17243D
Tritanopia (blue-blind)
#430D21
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40033e;
/* rgb */ color: rgb(64, 3, 62);
/* oklch */ color: oklch(26.2% 0.114 329.8);
Tailwind
colors: {
  custom: {
    50: '#784d73',
    500: '#40033e',
    950: '#000000',
  },
}
SCSS
$custom: #40033e;
$custom-light: #784d73;
$custom-dark: #000000;
JSON
{
  "hex": "#40033e",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 62
  },
  "hsl": {
    "h": 301.967,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.26214,
    "c": 0.1142,
    "h": 329.8
  },
  "luminance": 0.01503
}

Semantic roles & 50–950 ramp

primary
#40033E
secondary
#1D8220
accent
#FF3029
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #40033E

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

Preview Lab → · Contrast checker → · Palette generator →

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