#40033A#40033A

#40033A is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.9% C 0.111 H 333.0°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#40033A
RGBrgb(64, 3, 58)
HSLhsl(306, 91%, 13%)
HSVhsv(306, 95%, 25%)
CMYKcmyk(0%, 95.3%, 9.4%, 74.9%)
CIE-LABlab(12.36, 34.20, -18.31)
CIE-LCHlch(12.36, 38.79, 331.84°)
OKLaboklab(25.94% 0.0988 -0.0504)
OKLCHoklch(25.94% 0.111 333)
XYZxyz(2.9107, 1.4609, 4.1308)
Luminance0.0146 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40033A #034009
analogous
#270340 #40033A #40031B
triadic
#40033A #3A4003 #033A40
tetradic
#40033A #402703 #034009 #031B40
square
#40033A #402703 #034009 #031B40
split-complementary
#40033A #1B4003 #034027
monochromatic
#1D011A #1D011A #40033A #7A066F #B508A4

Accessibility & contrast

On white

16.25
#40033A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#40033A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40033A
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40033A#FFFFFF#000000##FFFFFF
##40033A1.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3B
Deuteranopia (green-blind)
#192339
Tritanopia (blue-blind)
#430A1F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #40033a;
/* rgb */ color: rgb(64, 3, 58);
/* oklch */ color: oklch(25.9% 0.111 333.0);
Tailwind
colors: {
  custom: {
    50: '#784d70',
    500: '#40033a',
    950: '#000000',
  },
}
SCSS
$custom: #40033a;
$custom-light: #784d70;
$custom-dark: #000000;
JSON
{
  "hex": "#40033a",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 58
  },
  "hsl": {
    "h": 305.902,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.25935,
    "c": 0.11097,
    "h": 333
  },
  "luminance": 0.01461
}

Semantic roles & 50–950 ramp

primary
#40033A
secondary
#1D8227
accent
#FF3E29
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #40033A

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

Preview Lab → · Contrast checker → · Palette generator →

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