#40102F#40102F

#40102F is a dark, moderate pink. Relative luminance 0.017; OKLCH L 26.6% C 0.084 H 344.6°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#40102F
RGBrgb(64, 16, 47)
HSLhsl(321, 60%, 16%)
HSVhsv(321, 75%, 25%)
CMYKcmyk(0%, 75%, 26.6%, 74.9%)
CIE-LABlab(13.63, 26.95, -8.39)
CIE-LCHlch(13.63, 28.23, 342.72°)
OKLaboklab(26.65% 0.0812 -0.0223)
OKLCHoklch(26.65% 0.084 344.6)
XYZxyz(2.8128, 1.6661, 2.8622)
Luminance0.0167 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40102F #104021
analogous
#391040 #40102F #401017
triadic
#40102F #2F4010 #102F40
tetradic
#40102F #403910 #104021 #101740
square
#40102F #403910 #104021 #101740
split-complementary
#40102F #174010 #104039
monochromatic
#180612 #180612 #40102F #711C53 #A22877

Accessibility & contrast

On white

15.75
#40102F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#40102F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40102F
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40102F#FFFFFF#000000##FFFFFF
##40102F1.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151E30
Deuteranopia (green-blind)
#23262E
Tritanopia (blue-blind)
#45101D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40102f;
/* rgb */ color: rgb(64, 16, 47);
/* oklch */ color: oklch(26.6% 0.084 344.6);
Tailwind
colors: {
  custom: {
    50: '#775267',
    500: '#40102f',
    950: '#000000',
  },
}
SCSS
$custom: #40102f;
$custom-light: #775267;
$custom-dark: #000000;
JSON
{
  "hex": "#40102f",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 47
  },
  "hsl": {
    "h": 321.25,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26649,
    "c": 0.0842,
    "h": 344.6
  },
  "luminance": 0.01666
}

Semantic roles & 50–950 ramp

primary
#40102F
secondary
#327A4B
accent
#E37D45
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #40102F

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

Preview Lab → · Contrast checker → · Palette generator →

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