#40122E#40122E

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

Color values

HEX#40122E
RGBrgb(64, 18, 46)
HSLhsl(323, 56%, 16%)
HSVhsv(323, 72%, 25%)
CMYKcmyk(0%, 71.9%, 28.1%, 74.9%)
CIE-LABlab(13.94, 25.79, -7.18)
CIE-LCHlch(13.94, 26.77, 344.45°)
OKLaboklab(26.87% 0.0778 -0.019)
OKLCHoklch(26.87% 0.08 346.3)
XYZxyz(2.8239, 1.7201, 2.7675)
Luminance0.0172 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40122E #124024
analogous
#3B1240 #40122E #401217
triadic
#40122E #2E4012 #122E40
tetradic
#40122E #403B12 #124024 #121740
square
#40122E #403B12 #124024 #121740
split-complementary
#40122E #174012 #12403B
monochromatic
#180711 #180711 #40122E #701F50 #A02D73

Accessibility & contrast

On white

15.62
#40122E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40122E
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40122E#FFFFFF#000000##FFFFFF
##40122E1.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171E2F
Deuteranopia (green-blind)
#24262D
Tritanopia (blue-blind)
#45111E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40122e;
/* rgb */ color: rgb(64, 18, 46);
/* oklch */ color: oklch(26.9% 0.080 346.3);
Tailwind
colors: {
  custom: {
    50: '#775366',
    500: '#40122e',
    950: '#000000',
  },
}
SCSS
$custom: #40122e;
$custom-light: #775366;
$custom-dark: #000000;
JSON
{
  "hex": "#40122e",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 46
  },
  "hsl": {
    "h": 323.478,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.26867,
    "c": 0.08012,
    "h": 346.3
  },
  "luminance": 0.0172
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40122E

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

Preview Lab → · Contrast checker → · Palette generator →

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