#40063E#40063E

#40063E is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.5% C 0.110 H 329.7°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#40063E
RGBrgb(64, 6, 62)
HSLhsl(302, 83%, 14%)
HSVhsv(302, 91%, 25%)
CMYKcmyk(0%, 90.6%, 3.1%, 74.9%)
CIE-LABlab(13.04, 33.72, -20.09)
CIE-LCHlch(13.04, 39.25, 329.21°)
OKLaboklab(26.5% 0.0953 -0.0556)
OKLCHoklch(26.5% 0.11 329.7)
XYZxyz(3.0490, 1.5683, 4.6986)
Luminance0.0157 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40063E #064008
analogous
#250640 #40063E #400621
triadic
#40063E #3E4006 #063E40
tetradic
#40063E #402506 #064008 #062140
square
#40063E #402506 #064008 #062140
split-complementary
#40063E #214006 #064025
monochromatic
#1C031B #1C031B #40063E #780B74 #B010AA

Accessibility & contrast

On white

15.99
#40063E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40063E
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40063E#FFFFFF#000000##FFFFFF
##40063E1.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D3F
Deuteranopia (green-blind)
#18243D
Tritanopia (blue-blind)
#430F22
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #40063e;
/* rgb */ color: rgb(64, 6, 62);
/* oklch */ color: oklch(26.5% 0.110 329.7);
Tailwind
colors: {
  custom: {
    50: '#774f73',
    500: '#40063e',
    950: '#000000',
  },
}
SCSS
$custom: #40063e;
$custom-light: #774f73;
$custom-dark: #000000;
JSON
{
  "hex": "#40063e",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 62
  },
  "hsl": {
    "h": 302.069,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.26503,
    "c": 0.11032,
    "h": 329.7
  },
  "luminance": 0.01568
}

Semantic roles & 50–950 ramp

primary
#40063E
secondary
#228025
accent
#F9362F
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #40063E

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

Preview Lab → · Contrast checker → · Palette generator →

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