#400B27#400B27

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

Color values

HEX#400B27
RGBrgb(64, 11, 39)
HSLhsl(328, 71%, 15%)
HSVhsv(328, 83%, 25%)
CMYKcmyk(0%, 82.8%, 39.1%, 74.9%)
CIE-LABlab(12.46, 28.01, -4.29)
CIE-LCHlch(12.46, 28.34, 351.29°)
OKLaboklab(25.67% 0.0858 -0.011)
OKLCHoklch(25.67% 0.087 352.7)
XYZxyz(2.6004, 1.4761, 2.0670)
Luminance0.0148 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B27 #0B4024
analogous
#3F0B40 #400B27 #400B0C
triadic
#400B27 #27400B #0B2740
tetradic
#400B27 #403F0B #0B4024 #0B0C40
square
#400B27 #403F0B #0B4024 #0B0C40
split-complementary
#400B27 #0C400B #0B403F
monochromatic
#1A0410 #1A0410 #400B27 #741447 #A81D67

Accessibility & contrast

On white

16.21
#400B27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400B27
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B27#FFFFFF#000000##FFFFFF
##400B271.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141A28
Deuteranopia (green-blind)
#232426
Tritanopia (blue-blind)
#460717
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400b27;
/* rgb */ color: rgb(64, 11, 39);
/* oklch */ color: oklch(25.7% 0.086 352.7);
Tailwind
colors: {
  custom: {
    50: '#785061',
    500: '#400b27',
    950: '#000000',
  },
}
SCSS
$custom: #400b27;
$custom-light: #785061;
$custom-dark: #000000;
JSON
{
  "hex": "#400b27",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 39
  },
  "hsl": {
    "h": 328.302,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25672,
    "c": 0.0865,
    "h": 352.7
  },
  "luminance": 0.01476
}

Semantic roles & 50–950 ramp

primary
#400B27
secondary
#2A7D51
accent
#ED8F3A
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090205
muted
#7B7879

Preview Lab

Preview with #400B27

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

Preview Lab → · Contrast checker → · Palette generator →

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