#40033B#40033B

#40033B is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.0% C 0.112 H 332.2°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#40033B
RGBrgb(64, 3, 59)
HSLhsl(305, 91%, 13%)
HSVhsv(305, 95%, 25%)
CMYKcmyk(0%, 95.3%, 7.8%, 74.9%)
CIE-LABlab(12.42, 34.37, -18.92)
CIE-LCHlch(12.42, 39.24, 331.17°)
OKLaboklab(26% 0.0988 -0.0522)
OKLCHoklch(26% 0.112 332.2)
XYZxyz(2.9363, 1.4711, 4.2661)
Luminance0.0147 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40033B #034008
analogous
#260340 #40033B #40031C
triadic
#40033B #3B4003 #033B40
tetradic
#40033B #402603 #034008 #031C40
square
#40033B #402603 #034008 #031C40
split-complementary
#40033B #1C4003 #034026
monochromatic
#1D011B #1D011B #40033B #7A0671 #B508A7

Accessibility & contrast

On white

16.23
#40033B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40033B
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40033B#FFFFFF#000000##FFFFFF
##40033B1.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3C
Deuteranopia (green-blind)
#19233A
Tritanopia (blue-blind)
#430B20
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #40033b;
/* rgb */ color: rgb(64, 3, 59);
/* oklch */ color: oklch(26.0% 0.112 332.2);
Tailwind
colors: {
  custom: {
    50: '#784d71',
    500: '#40033b',
    950: '#000000',
  },
}
SCSS
$custom: #40033b;
$custom-light: #784d71;
$custom-dark: #000000;
JSON
{
  "hex": "#40033b",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 59
  },
  "hsl": {
    "h": 304.918,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.26003,
    "c": 0.11176,
    "h": 332.2
  },
  "luminance": 0.01471
}

Semantic roles & 50–950 ramp

primary
#40033B
secondary
#1D8225
accent
#FF3A29
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #40033B

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

Preview Lab → · Contrast checker → · Palette generator →

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