#40033C#40033C

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

Color values

HEX#40033C
RGBrgb(64, 3, 60)
HSLhsl(304, 91%, 13%)
HSVhsv(304, 95%, 25%)
CMYKcmyk(0%, 95.3%, 6.2%, 74.9%)
CIE-LABlab(12.49, 34.55, -19.53)
CIE-LCHlch(12.49, 39.69, 330.52°)
OKLaboklab(26.07% 0.0988 -0.0539)
OKLCHoklch(26.07% 0.113 331.4)
XYZxyz(2.9625, 1.4816, 4.4040)
Luminance0.0148 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40033C #034007
analogous
#250340 #40033C #40031D
triadic
#40033C #3C4003 #033C40
tetradic
#40033C #402503 #034007 #031D40
square
#40033C #402503 #034007 #031D40
split-complementary
#40033C #1D4003 #034025
monochromatic
#1D011B #1D011B #40033C #7A0673 #B508AA

Accessibility & contrast

On white

16.20
#40033C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40033C
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40033C#FFFFFF#000000##FFFFFF
##40033C1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3D
Deuteranopia (green-blind)
#18233B
Tritanopia (blue-blind)
#430B20
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #40033c;
/* rgb */ color: rgb(64, 3, 60);
/* oklch */ color: oklch(26.1% 0.113 331.4);
Tailwind
colors: {
  custom: {
    50: '#784d72',
    500: '#40033c',
    950: '#000000',
  },
}
SCSS
$custom: #40033c;
$custom-light: #784d72;
$custom-dark: #000000;
JSON
{
  "hex": "#40033c",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 60
  },
  "hsl": {
    "h": 303.934,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.26072,
    "c": 0.11257,
    "h": 331.4
  },
  "luminance": 0.01481
}

Semantic roles & 50–950 ramp

primary
#40033C
secondary
#1D8223
accent
#FF3729
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090208
muted
#7B787B

Preview Lab

Preview with #40033C

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

Preview Lab → · Contrast checker → · Palette generator →

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