#40103D#40103D

#40103D is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.5% C 0.096 H 330.4°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#40103D
RGBrgb(64, 16, 61)
HSLhsl(304, 60%, 16%)
HSVhsv(304, 75%, 25%)
CMYKcmyk(0%, 75%, 4.7%, 74.9%)
CIE-LABlab(14.39, 29.49, -17.24)
CIE-LCHlch(14.39, 34.16, 329.68°)
OKLaboklab(27.45% 0.0837 -0.0474)
OKLCHoklch(27.45% 0.096 330.4)
XYZxyz(3.1419, 1.7977, 4.5955)
Luminance0.0180 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40103D #104013
analogous
#2B1040 #40103D #401025
triadic
#40103D #3D4010 #103D40
tetradic
#40103D #402B10 #104013 #102540
square
#40103D #402B10 #104013 #102540
split-complementary
#40103D #254010 #10402B
monochromatic
#180617 #180617 #40103D #711C6C #A2289A

Accessibility & contrast

On white

15.45
#40103D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#40103D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40103D
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40103D#FFFFFF#000000##FFFFFF
##40103D1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C203E
Deuteranopia (green-blind)
#1E273C
Tritanopia (blue-blind)
#431524
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40103d;
/* rgb */ color: rgb(64, 16, 61);
/* oklch */ color: oklch(27.5% 0.096 330.4);
Tailwind
colors: {
  custom: {
    50: '#775372',
    500: '#40103d',
    950: '#000000',
  },
}
SCSS
$custom: #40103d;
$custom-light: #775372;
$custom-dark: #000000;
JSON
{
  "hex": "#40103d",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 61
  },
  "hsl": {
    "h": 303.75,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.27452,
    "c": 0.09618,
    "h": 330.4
  },
  "luminance": 0.01797
}

Semantic roles & 50–950 ramp

primary
#40103D
secondary
#327A36
accent
#E34F45
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090208
muted
#7B787B

Preview Lab

Preview with #40103D

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

Preview Lab → · Contrast checker → · Palette generator →

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