#400F34#400F34

#400F34 is a dark, moderate pink. Relative luminance 0.017; OKLCH L 26.8% C 0.090 H 339.0°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#400F34
RGBrgb(64, 15, 52)
HSLhsl(315, 62%, 15%)
HSVhsv(315, 77%, 25%)
CMYKcmyk(0%, 76.6%, 18.8%, 74.9%)
CIE-LABlab(13.71, 28.28, -11.88)
CIE-LCHlch(13.71, 30.67, 337.21°)
OKLaboklab(26.79% 0.0838 -0.0321)
OKLCHoklch(26.79% 0.09 339)
XYZxyz(2.9051, 1.6798, 3.4194)
Luminance0.0168 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F34 #0F401B
analogous
#330F40 #400F34 #400F1B
triadic
#400F34 #34400F #0F3440
tetradic
#400F34 #40330F #0F401B #0F1B40
square
#400F34 #40330F #0F401B #0F1B40
split-complementary
#400F34 #1B400F #0F4033
monochromatic
#190614 #190614 #400F34 #721B5C #A32685

Accessibility & contrast

On white

15.72
#400F34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#400F34 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F34
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F34#FFFFFF#000000##FFFFFF
##400F341.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111E35
Deuteranopia (green-blind)
#212633
Tritanopia (blue-blind)
#44111F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400f34;
/* rgb */ color: rgb(64, 15, 52);
/* oklch */ color: oklch(26.8% 0.090 339.0);
Tailwind
colors: {
  custom: {
    50: '#77526b',
    500: '#400f34',
    950: '#000000',
  },
}
SCSS
$custom: #400f34;
$custom-light: #77526b;
$custom-dark: #000000;
JSON
{
  "hex": "#400f34",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 52
  },
  "hsl": {
    "h": 314.694,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26791,
    "c": 0.08972,
    "h": 339
  },
  "luminance": 0.0168
}

Semantic roles & 50–950 ramp

primary
#400F34
secondary
#307A42
accent
#E56A43
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400F34

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

Preview Lab → · Contrast checker → · Palette generator →

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