#40102B#40102B

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

Color values

HEX#40102B
RGBrgb(64, 16, 43)
HSLhsl(326, 60%, 16%)
HSVhsv(326, 75%, 25%)
CMYKcmyk(0%, 75%, 32.8%, 74.9%)
CIE-LABlab(13.44, 26.32, -5.75)
CIE-LCHlch(13.44, 26.94, 347.68°)
OKLaboklab(26.45% 0.08 -0.015)
OKLCHoklch(26.45% 0.081 349.4)
XYZxyz(2.7358, 1.6353, 2.4566)
Luminance0.0163 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40102B #104025
analogous
#3D1040 #40102B #401013
triadic
#40102B #2B4010 #102B40
tetradic
#40102B #403D10 #104025 #101340
square
#40102B #403D10 #104025 #101340
split-complementary
#40102B #134010 #10403D
monochromatic
#180610 #180610 #40102B #711C4C #A2286D

Accessibility & contrast

On white

15.83
#40102B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40102B
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40102B#FFFFFF#000000##FFFFFF
##40102B1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171D2C
Deuteranopia (green-blind)
#24262A
Tritanopia (blue-blind)
#450E1B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #40102b;
/* rgb */ color: rgb(64, 16, 43);
/* oklch */ color: oklch(26.5% 0.081 349.4);
Tailwind
colors: {
  custom: {
    50: '#775264',
    500: '#40102b',
    950: '#000000',
  },
}
SCSS
$custom: #40102b;
$custom-light: #775264;
$custom-dark: #000000;
JSON
{
  "hex": "#40102b",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 43
  },
  "hsl": {
    "h": 326.25,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26454,
    "c": 0.08141,
    "h": 349.4
  },
  "luminance": 0.01635
}

Semantic roles & 50–950 ramp

primary
#40102B
secondary
#327A51
accent
#E38A45
background
#F7F4F5
surface
#EDE7EA
border
#C8C3C6
text
#090205
muted
#7B7879

Preview Lab

Preview with #40102B

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

Preview Lab → · Contrast checker → · Palette generator →

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