#400F37#400F37

#400F37 is a dark, moderate pink. Relative luminance 0.017; OKLCH L 27.0% C 0.092 H 336.0°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#400F37
RGBrgb(64, 15, 55)
HSLhsl(311, 62%, 15%)
HSVhsv(311, 77%, 25%)
CMYKcmyk(0%, 76.6%, 14.1%, 74.9%)
CIE-LABlab(13.87, 28.81, -13.78)
CIE-LCHlch(13.87, 31.94, 334.44°)
OKLaboklab(26.96% 0.0843 -0.0375)
OKLCHoklch(26.96% 0.092 336)
XYZxyz(2.9748, 1.7077, 3.7866)
Luminance0.0171 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F37 #0F4018
analogous
#300F40 #400F37 #400F1E
triadic
#400F37 #37400F #0F3740
tetradic
#400F37 #40300F #0F4018 #0F1E40
square
#400F37 #40300F #0F4018 #0F1E40
split-complementary
#400F37 #1E400F #0F4030
monochromatic
#190615 #190615 #400F37 #721B62 #A3268C

Accessibility & contrast

On white

15.66
#400F37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F37
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F37#FFFFFF#000000##FFFFFF
##400F371.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101F38
Deuteranopia (green-blind)
#202636
Tritanopia (blue-blind)
#441221
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400f37;
/* rgb */ color: rgb(64, 15, 55);
/* oklch */ color: oklch(27.0% 0.092 336.0);
Tailwind
colors: {
  custom: {
    50: '#77526e',
    500: '#400f37',
    950: '#000000',
  },
}
SCSS
$custom: #400f37;
$custom-light: #77526e;
$custom-dark: #000000;
JSON
{
  "hex": "#400f37",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 55
  },
  "hsl": {
    "h": 311.02,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26964,
    "c": 0.09227,
    "h": 336
  },
  "luminance": 0.01707
}

Semantic roles & 50–950 ramp

primary
#400F37
secondary
#307A3E
accent
#E56143
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090207
muted
#7B787A

Preview Lab

Preview with #400F37

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

Preview Lab → · Contrast checker → · Palette generator →

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