#40122B#40122B

#40122B is a dark, moderate pink. Relative luminance 0.017; OKLCH L 26.7% C 0.078 H 350.0°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#40122B
RGBrgb(64, 18, 43)
HSLhsl(327, 56%, 16%)
HSVhsv(327, 72%, 25%)
CMYKcmyk(0%, 71.9%, 32.8%, 74.9%)
CIE-LABlab(13.81, 25.31, -5.19)
CIE-LCHlch(13.81, 25.84, 348.40°)
OKLaboklab(26.73% 0.0769 -0.0135)
OKLCHoklch(26.73% 0.078 350)
XYZxyz(2.7668, 1.6973, 2.4669)
Luminance0.0170 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40122B #124027
analogous
#3E1240 #40122B #401214
triadic
#40122B #2B4012 #122B40
tetradic
#40122B #403E12 #124027 #121440
square
#40122B #403E12 #124027 #121440
split-complementary
#40122B #144012 #12403E
monochromatic
#180710 #180710 #40122B #701F4B #A02D6B

Accessibility & contrast

On white

15.68
#40122B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#40122B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40122B
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40122B#FFFFFF#000000##FFFFFF
##40122B1.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181E2C
Deuteranopia (green-blind)
#25262A
Tritanopia (blue-blind)
#45101C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40122b;
/* rgb */ color: rgb(64, 18, 43);
/* oklch */ color: oklch(26.7% 0.078 350.0);
Tailwind
colors: {
  custom: {
    50: '#775364',
    500: '#40122b',
    950: '#000000',
  },
}
SCSS
$custom: #40122b;
$custom-light: #775364;
$custom-dark: #000000;
JSON
{
  "hex": "#40122b",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 43
  },
  "hsl": {
    "h": 327.391,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.26725,
    "c": 0.07807,
    "h": 350
  },
  "luminance": 0.01697
}

Semantic roles & 50–950 ramp

primary
#40122B
secondary
#357954
accent
#DF8D48
background
#F7F4F5
surface
#EDE7EA
border
#C8C3C6
text
#090205
muted
#7B7879

Preview Lab

Preview with #40122B

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

Preview Lab → · Contrast checker → · Palette generator →

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