#40102E#40102E

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

Color values

HEX#40102E
RGBrgb(64, 16, 46)
HSLhsl(323, 60%, 16%)
HSVhsv(323, 75%, 25%)
CMYKcmyk(0%, 75%, 28.1%, 74.9%)
CIE-LABlab(13.58, 26.79, -7.73)
CIE-LCHlch(13.58, 27.89, 343.90°)
OKLaboklab(26.6% 0.0809 -0.0205)
OKLCHoklch(26.6% 0.083 345.8)
XYZxyz(2.7929, 1.6581, 2.7572)
Luminance0.0166 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40102E #104022
analogous
#3A1040 #40102E #401016
triadic
#40102E #2E4010 #102E40
tetradic
#40102E #403A10 #104022 #101640
square
#40102E #403A10 #104022 #101640
split-complementary
#40102E #164010 #10403A
monochromatic
#180612 #180612 #40102E #711C51 #A22874

Accessibility & contrast

On white

15.77
#40102E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40102E
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40102E#FFFFFF#000000##FFFFFF
##40102E1.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151E2F
Deuteranopia (green-blind)
#23262D
Tritanopia (blue-blind)
#450F1D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40102e;
/* rgb */ color: rgb(64, 16, 46);
/* oklch */ color: oklch(26.6% 0.083 345.8);
Tailwind
colors: {
  custom: {
    50: '#775266',
    500: '#40102e',
    950: '#000000',
  },
}
SCSS
$custom: #40102e;
$custom-light: #775266;
$custom-dark: #000000;
JSON
{
  "hex": "#40102e",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 46
  },
  "hsl": {
    "h": 322.5,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26599,
    "c": 0.08346,
    "h": 345.8
  },
  "luminance": 0.01658
}

Semantic roles & 50–950 ramp

primary
#40102E
secondary
#327A4D
accent
#E38045
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #40102E

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

Preview Lab → · Contrast checker → · Palette generator →

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