#40033D#40033D

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

Color values

HEX#40033D
RGBrgb(64, 3, 61)
HSLhsl(303, 91%, 13%)
HSVhsv(303, 95%, 25%)
CMYKcmyk(0%, 95.3%, 4.7%, 74.9%)
CIE-LABlab(12.56, 34.73, -20.14)
CIE-LCHlch(12.56, 40.14, 329.89°)
OKLaboklab(26.14% 0.0988 -0.0557)
OKLCHoklch(26.14% 0.113 330.6)
XYZxyz(2.9892, 1.4923, 4.5446)
Luminance0.0149 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40033D #034006
analogous
#240340 #40033D #40031E
triadic
#40033D #3D4003 #033D40
tetradic
#40033D #402403 #034006 #031E40
square
#40033D #402403 #034006 #031E40
split-complementary
#40033D #1E4003 #034024
monochromatic
#1D011C #1D011C #40033D #7A0675 #B508AC

Accessibility & contrast

On white

16.17
#40033D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40033D
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40033D#FFFFFF#000000##FFFFFF
##40033D1.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)
#001B3E
Deuteranopia (green-blind)
#18233C
Tritanopia (blue-blind)
#430C21
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40033d;
/* rgb */ color: rgb(64, 3, 61);
/* oklch */ color: oklch(26.1% 0.113 330.6);
Tailwind
colors: {
  custom: {
    50: '#784d73',
    500: '#40033d',
    950: '#000000',
  },
}
SCSS
$custom: #40033d;
$custom-light: #784d73;
$custom-dark: #000000;
JSON
{
  "hex": "#40033d",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 61
  },
  "hsl": {
    "h": 302.951,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.26143,
    "c": 0.11338,
    "h": 330.6
  },
  "luminance": 0.01492
}

Semantic roles & 50–950 ramp

primary
#40033D
secondary
#1D8222
accent
#FF3329
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090208
muted
#7B787B

Preview Lab

Preview with #40033D

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

Preview Lab → · Contrast checker → · Palette generator →

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