#400F27#400F27

#400F27 is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.1% C 0.081 H 354.0°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#400F27
RGBrgb(64, 15, 39)
HSLhsl(331, 62%, 15%)
HSVhsv(331, 77%, 25%)
CMYKcmyk(0%, 76.6%, 39.1%, 74.9%)
CIE-LABlab(13.10, 26.22, -3.33)
CIE-LCHlch(13.10, 26.43, 352.76°)
OKLaboklab(26.14% 0.0802 -0.0085)
OKLCHoklch(26.14% 0.081 354)
XYZxyz(2.6515, 1.5784, 2.0841)
Luminance0.0158 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F27 #0F4028
analogous
#400F3F #400F27 #400F0F
triadic
#400F27 #27400F #0F2740
tetradic
#400F27 #3F400F #0F4028 #0F0F40
square
#400F27 #3F400F #0F4028 #0F0F40
split-complementary
#400F27 #0F400F #0F3F40
monochromatic
#19060F #19060F #400F27 #721B45 #A32663

Accessibility & contrast

On white

15.96
#400F27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#400F27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F27
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F27#FFFFFF#000000##FFFFFF
##400F271.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171C28
Deuteranopia (green-blind)
#252526
Tritanopia (blue-blind)
#460B19
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400f27;
/* rgb */ color: rgb(64, 15, 39);
/* oklch */ color: oklch(26.1% 0.081 354.0);
Tailwind
colors: {
  custom: {
    50: '#775161',
    500: '#400f27',
    950: '#000000',
  },
}
SCSS
$custom: #400f27;
$custom-light: #775161;
$custom-dark: #000000;
JSON
{
  "hex": "#400f27",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 39
  },
  "hsl": {
    "h": 330.612,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26144,
    "c": 0.08061,
    "h": 354
  },
  "luminance": 0.01578
}

Semantic roles & 50–950 ramp

primary
#400F27
secondary
#307A56
accent
#E59643
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090205
muted
#7B7879

Preview Lab

Preview with #400F27

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

Preview Lab → · Contrast checker → · Palette generator →

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