#40102C#40102C

#40102C is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.5% C 0.082 H 348.2°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#40102C
RGBrgb(64, 16, 44)
HSLhsl(325, 60%, 16%)
HSVhsv(325, 75%, 25%)
CMYKcmyk(0%, 75%, 31.2%, 74.9%)
CIE-LABlab(13.49, 26.48, -6.41)
CIE-LCHlch(13.49, 27.24, 346.38°)
OKLaboklab(26.5% 0.0803 -0.0168)
OKLCHoklch(26.5% 0.082 348.2)
XYZxyz(2.7544, 1.6427, 2.5544)
Luminance0.0164 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40102C #104024
analogous
#3C1040 #40102C #401014
triadic
#40102C #2C4010 #102C40
tetradic
#40102C #403C10 #104024 #101440
square
#40102C #403C10 #104024 #101440
split-complementary
#40102C #144010 #10403C
monochromatic
#180611 #180611 #40102C #711C4E #A2286F

Accessibility & contrast

On white

15.81
#40102C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40102C
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40102C#FFFFFF#000000##FFFFFF
##40102C1.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#161D2D
Deuteranopia (green-blind)
#24262B
Tritanopia (blue-blind)
#450E1C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40102c;
/* rgb */ color: rgb(64, 16, 44);
/* oklch */ color: oklch(26.5% 0.082 348.2);
Tailwind
colors: {
  custom: {
    50: '#775265',
    500: '#40102c',
    950: '#000000',
  },
}
SCSS
$custom: #40102c;
$custom-light: #775265;
$custom-dark: #000000;
JSON
{
  "hex": "#40102c",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 44
  },
  "hsl": {
    "h": 325,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26502,
    "c": 0.08207,
    "h": 348.2
  },
  "luminance": 0.01642
}

Semantic roles & 50–950 ramp

primary
#40102C
secondary
#327A50
accent
#E38745
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090205
muted
#7B787A

Preview Lab

Preview with #40102C

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

Preview Lab → · Contrast checker → · Palette generator →

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