#40103F#40103F

#40103F is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.6% C 0.098 H 328.7°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#40103F
RGBrgb(64, 16, 63)
HSLhsl(301, 60%, 16%)
HSVhsv(301, 75%, 25%)
CMYKcmyk(0%, 75%, 1.6%, 74.9%)
CIE-LABlab(14.51, 29.88, -18.46)
CIE-LCHlch(14.51, 35.12, 328.30°)
OKLaboklab(27.58% 0.0838 -0.051)
OKLCHoklch(27.58% 0.098 328.7)
XYZxyz(3.1968, 1.8197, 4.8845)
Luminance0.0182 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40103F #104011
analogous
#291040 #40103F #401027
triadic
#40103F #3F4010 #103F40
tetradic
#40103F #402910 #104011 #102740
square
#40103F #402910 #104011 #102740
split-complementary
#40103F #274010 #104029
monochromatic
#180618 #180618 #40103F #711C6F #A2289F

Accessibility & contrast

On white

15.40
#40103F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40103F
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40103F#FFFFFF#000000##FFFFFF
##40103F1.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2140
Deuteranopia (green-blind)
#1D273E
Tritanopia (blue-blind)
#421625
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40103f;
/* rgb */ color: rgb(64, 16, 63);
/* oklch */ color: oklch(27.6% 0.098 328.7);
Tailwind
colors: {
  custom: {
    50: '#775374',
    500: '#40103f',
    950: '#000000',
  },
}
SCSS
$custom: #40103f;
$custom-light: #775374;
$custom-dark: #000000;
JSON
{
  "hex": "#40103f",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 63
  },
  "hsl": {
    "h": 301.25,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.27581,
    "c": 0.09809,
    "h": 328.7
  },
  "luminance": 0.01819
}

Semantic roles & 50–950 ramp

primary
#40103F
secondary
#327A33
accent
#E34845
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #40103F

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

Preview Lab → · Contrast checker → · Palette generator →

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