#40063D#40063D

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

Color values

HEX#40063D
RGBrgb(64, 6, 61)
HSLhsl(303, 83%, 14%)
HSVhsv(303, 91%, 25%)
CMYKcmyk(0%, 90.6%, 4.7%, 74.9%)
CIE-LABlab(12.97, 33.53, -19.49)
CIE-LCHlch(12.97, 38.78, 329.84°)
OKLaboklab(26.43% 0.0953 -0.0538)
OKLCHoklch(26.43% 0.109 330.5)
XYZxyz(3.0218, 1.5574, 4.5554)
Luminance0.0156 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40063D #064009
analogous
#260640 #40063D #400620
triadic
#40063D #3D4006 #063D40
tetradic
#40063D #402606 #064009 #062040
square
#40063D #402606 #064009 #062040
split-complementary
#40063D #204006 #064026
monochromatic
#1C031B #1C031B #40063D #780B72 #B010A8

Accessibility & contrast

On white

16.01
#40063D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40063D
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40063D#FFFFFF#000000##FFFFFF
##40063D1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011C3E
Deuteranopia (green-blind)
#19243C
Tritanopia (blue-blind)
#430E22
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40063d;
/* rgb */ color: rgb(64, 6, 61);
/* oklch */ color: oklch(26.4% 0.109 330.5);
Tailwind
colors: {
  custom: {
    50: '#774f73',
    500: '#40063d',
    950: '#000000',
  },
}
SCSS
$custom: #40063d;
$custom-light: #774f73;
$custom-dark: #000000;
JSON
{
  "hex": "#40063d",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 61
  },
  "hsl": {
    "h": 303.103,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.26433,
    "c": 0.10947,
    "h": 330.5
  },
  "luminance": 0.01557
}

Semantic roles & 50–950 ramp

primary
#40063D
secondary
#228027
accent
#F9392F
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090208
muted
#7B787B

Preview Lab

Preview with #40063D

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

Preview Lab → · Contrast checker → · Palette generator →

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