#40063B#40063B

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

Color values

HEX#40063B
RGBrgb(64, 6, 59)
HSLhsl(305, 83%, 14%)
HSVhsv(305, 91%, 25%)
CMYKcmyk(0%, 90.6%, 7.8%, 74.9%)
CIE-LABlab(12.84, 33.17, -18.27)
CIE-LCHlch(12.84, 37.87, 331.16°)
OKLaboklab(26.3% 0.0953 -0.0503)
OKLCHoklch(26.3% 0.108 332.2)
XYZxyz(2.9689, 1.5363, 4.2770)
Luminance0.0154 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40063B #06400B
analogous
#280640 #40063B #40061E
triadic
#40063B #3B4006 #063B40
tetradic
#40063B #402806 #06400B #061E40
square
#40063B #402806 #06400B #061E40
split-complementary
#40063B #1E4006 #064028
monochromatic
#1C031A #1C031A #40063B #780B6F #B010A2

Accessibility & contrast

On white

16.06
#40063B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40063B
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40063B#FFFFFF#000000##FFFFFF
##40063B1.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031C3C
Deuteranopia (green-blind)
#1A243A
Tritanopia (blue-blind)
#430D20
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40063b;
/* rgb */ color: rgb(64, 6, 59);
/* oklch */ color: oklch(26.3% 0.108 332.2);
Tailwind
colors: {
  custom: {
    50: '#774e71',
    500: '#40063b',
    950: '#000000',
  },
}
SCSS
$custom: #40063b;
$custom-light: #774e71;
$custom-dark: #000000;
JSON
{
  "hex": "#40063b",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 59
  },
  "hsl": {
    "h": 305.172,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.26297,
    "c": 0.10779,
    "h": 332.2
  },
  "luminance": 0.01536
}

Semantic roles & 50–950 ramp

primary
#40063B
secondary
#22802A
accent
#F9402F
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #40063B

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

Preview Lab → · Contrast checker → · Palette generator →

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