#401223#401223

#401223 is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.4% C 0.074 H 0.6°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#401223
RGBrgb(64, 18, 35)
HSLhsl(338, 56%, 16%)
HSVhsv(338, 72%, 25%)
CMYKcmyk(0%, 71.9%, 45.3%, 74.9%)
CIE-LABlab(13.50, 24.17, 0.21)
CIE-LCHlch(13.50, 24.17, 0.49°)
OKLaboklab(26.39% 0.0739 0.0008)
OKLCHoklch(26.39% 0.074 0.6)
XYZxyz(2.6342, 1.6443, 1.7684)
Luminance0.0164 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401223 #12402F
analogous
#40123A #401223 #401812
triadic
#401223 #234012 #122340
tetradic
#401223 #3A4012 #12402F #181240
square
#401223 #3A4012 #12402F #181240
split-complementary
#401223 #124018 #123A40
monochromatic
#18070D #18070D #401223 #701F3D #A02D57

Accessibility & contrast

On white

15.80
#401223 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#401223 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401223
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401223#FFFFFF#000000##FFFFFF
##4012231.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B1D23
Deuteranopia (green-blind)
#272622
Tritanopia (blue-blind)
#460D19
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #401223;
/* rgb */ color: rgb(64, 18, 35);
/* oklch */ color: oklch(26.4% 0.074 0.6);
Tailwind
colors: {
  custom: {
    50: '#77535d',
    500: '#401223',
    950: '#000000',
  },
}
SCSS
$custom: #401223;
$custom-light: #77535d;
$custom-dark: #000000;
JSON
{
  "hex": "#401223",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 35
  },
  "hsl": {
    "h": 337.826,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.2639,
    "c": 0.07385,
    "h": 0.6
  },
  "luminance": 0.01644
}

Semantic roles & 50–950 ramp

primary
#401223
secondary
#357960
accent
#DFA848
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090204
muted
#7B7879

Preview Lab

Preview with #401223

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

Preview Lab → · Contrast checker → · Palette generator →

#401223 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva