#40103E#40103E

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

Color values

HEX#40103E
RGBrgb(64, 16, 62)
HSLhsl(303, 60%, 16%)
HSVhsv(303, 75%, 25%)
CMYKcmyk(0%, 75%, 3.1%, 74.9%)
CIE-LABlab(14.45, 29.68, -17.85)
CIE-LCHlch(14.45, 34.64, 328.98°)
OKLaboklab(27.52% 0.0838 -0.0492)
OKLCHoklch(27.52% 0.097 329.6)
XYZxyz(3.1691, 1.8086, 4.7387)
Luminance0.0181 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40103E #104012
analogous
#2A1040 #40103E #401026
triadic
#40103E #3E4010 #103E40
tetradic
#40103E #402A10 #104012 #102640
square
#40103E #402A10 #104012 #102640
split-complementary
#40103E #264010 #10402A
monochromatic
#180618 #180618 #40103E #711C6D #A2289D

Accessibility & contrast

On white

15.42
#40103E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40103E
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40103E#FFFFFF#000000##FFFFFF
##40103E1.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B203F
Deuteranopia (green-blind)
#1D273D
Tritanopia (blue-blind)
#431625
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40103e;
/* rgb */ color: rgb(64, 16, 62);
/* oklch */ color: oklch(27.5% 0.097 329.6);
Tailwind
colors: {
  custom: {
    50: '#775373',
    500: '#40103e',
    950: '#000000',
  },
}
SCSS
$custom: #40103e;
$custom-light: #775373;
$custom-dark: #000000;
JSON
{
  "hex": "#40103e",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 62
  },
  "hsl": {
    "h": 302.5,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.27516,
    "c": 0.09714,
    "h": 329.6
  },
  "luminance": 0.01808
}

Semantic roles & 50–950 ramp

primary
#40103E
secondary
#327A35
accent
#E34B45
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #40103E

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

Preview Lab → · Contrast checker → · Palette generator →

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