#400B28#400B28

#400B28 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.7% C 0.087 H 351.5°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#400B28
RGBrgb(64, 11, 40)
HSLhsl(327, 71%, 15%)
HSVhsv(327, 83%, 25%)
CMYKcmyk(0%, 82.8%, 37.5%, 74.9%)
CIE-LABlab(12.50, 28.15, -4.97)
CIE-LCHlch(12.50, 28.58, 349.99°)
OKLaboklab(25.72% 0.0861 -0.0129)
OKLCHoklch(25.72% 0.087 351.5)
XYZxyz(2.6172, 1.4828, 2.1555)
Luminance0.0148 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B28 #0B4023
analogous
#3E0B40 #400B28 #400B0D
triadic
#400B28 #28400B #0B2840
tetradic
#400B28 #403E0B #0B4023 #0B0D40
square
#400B28 #403E0B #0B4023 #0B0D40
split-complementary
#400B28 #0D400B #0B403E
monochromatic
#1A0410 #1A0410 #400B28 #741449 #A81D69

Accessibility & contrast

On white

16.20
#400B28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#400B28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400B28
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B28#FFFFFF#000000##FFFFFF
##400B281.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141A29
Deuteranopia (green-blind)
#232427
Tritanopia (blue-blind)
#450718
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400b28;
/* rgb */ color: rgb(64, 11, 40);
/* oklch */ color: oklch(25.7% 0.087 351.5);
Tailwind
colors: {
  custom: {
    50: '#785061',
    500: '#400b28',
    950: '#000000',
  },
}
SCSS
$custom: #400b28;
$custom-light: #785061;
$custom-dark: #000000;
JSON
{
  "hex": "#400b28",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 40
  },
  "hsl": {
    "h": 327.17,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25718,
    "c": 0.08707,
    "h": 351.5
  },
  "luminance": 0.01483
}

Semantic roles & 50–950 ramp

primary
#400B28
secondary
#2A7D50
accent
#ED8B3A
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090205
muted
#7B7879

Preview Lab

Preview with #400B28

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

Preview Lab → · Contrast checker → · Palette generator →

#400B28 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva