#40063C#40063C

#40063C is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.4% C 0.109 H 331.3°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#40063C
RGBrgb(64, 6, 60)
HSLhsl(304, 83%, 14%)
HSVhsv(304, 91%, 25%)
CMYKcmyk(0%, 90.6%, 6.2%, 74.9%)
CIE-LABlab(12.90, 33.35, -18.88)
CIE-LCHlch(12.90, 38.32, 330.49°)
OKLaboklab(26.37% 0.0953 -0.0521)
OKLCHoklch(26.37% 0.109 331.3)
XYZxyz(2.9951, 1.5467, 4.4149)
Luminance0.0155 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40063C #06400A
analogous
#270640 #40063C #40061F
triadic
#40063C #3C4006 #063C40
tetradic
#40063C #402706 #06400A #061F40
square
#40063C #402706 #06400A #061F40
split-complementary
#40063C #1F4006 #064027
monochromatic
#1C031A #1C031A #40063C #780B70 #B010A5

Accessibility & contrast

On white

16.04
#40063C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#40063C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40063C
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40063C#FFFFFF#000000##FFFFFF
##40063C1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021C3D
Deuteranopia (green-blind)
#1A243B
Tritanopia (blue-blind)
#430E21
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40063c;
/* rgb */ color: rgb(64, 6, 60);
/* oklch */ color: oklch(26.4% 0.109 331.3);
Tailwind
colors: {
  custom: {
    50: '#774e72',
    500: '#40063c',
    950: '#000000',
  },
}
SCSS
$custom: #40063c;
$custom-light: #774e72;
$custom-dark: #000000;
JSON
{
  "hex": "#40063c",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 60
  },
  "hsl": {
    "h": 304.138,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.26365,
    "c": 0.10862,
    "h": 331.3
  },
  "luminance": 0.01546
}

Semantic roles & 50–950 ramp

primary
#40063C
secondary
#228028
accent
#F93D2F
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090208
muted
#7B787B

Preview Lab

Preview with #40063C

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

Preview Lab → · Contrast checker → · Palette generator →

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