#40122F#40122F

#40122F is a dark, moderate pink. Relative luminance 0.017; OKLCH L 26.9% C 0.081 H 345.1°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#40122F
RGBrgb(64, 18, 47)
HSLhsl(322, 56%, 16%)
HSVhsv(322, 72%, 25%)
CMYKcmyk(0%, 71.9%, 26.6%, 74.9%)
CIE-LABlab(13.99, 25.95, -7.83)
CIE-LCHlch(13.99, 27.11, 343.21°)
OKLaboklab(26.92% 0.0781 -0.0208)
OKLCHoklch(26.92% 0.081 345.1)
XYZxyz(2.8438, 1.7281, 2.8726)
Luminance0.0173 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40122F #124023
analogous
#3A1240 #40122F #401218
triadic
#40122F #2F4012 #122F40
tetradic
#40122F #403A12 #124023 #121840
square
#40122F #403A12 #124023 #121840
split-complementary
#40122F #184012 #12403A
monochromatic
#180712 #180712 #40122F #701F52 #A02D75

Accessibility & contrast

On white

15.61
#40122F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#40122F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40122F
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40122F#FFFFFF#000000##FFFFFF
##40122F1.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171F30
Deuteranopia (green-blind)
#24262E
Tritanopia (blue-blind)
#45111E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40122f;
/* rgb */ color: rgb(64, 18, 47);
/* oklch */ color: oklch(26.9% 0.081 345.1);
Tailwind
colors: {
  custom: {
    50: '#775367',
    500: '#40122f',
    950: '#000000',
  },
}
SCSS
$custom: #40122f;
$custom-light: #775367;
$custom-dark: #000000;
JSON
{
  "hex": "#40122f",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 47
  },
  "hsl": {
    "h": 322.174,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.26916,
    "c": 0.08085,
    "h": 345.1
  },
  "luminance": 0.01728
}

Semantic roles & 50–950 ramp

primary
#40122F
secondary
#35794E
accent
#DF8048
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090306
muted
#7B787A

Preview Lab

Preview with #40122F

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

Preview Lab → · Contrast checker → · Palette generator →

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