#400731#400731

#400731 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.8% C 0.099 H 341.2°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#400731
RGBrgb(64, 7, 49)
HSLhsl(316, 80%, 14%)
HSVhsv(316, 89%, 25%)
CMYKcmyk(0%, 89.1%, 23.4%, 74.9%)
CIE-LABlab(12.38, 31.08, -11.77)
CIE-LCHlch(12.38, 33.24, 339.26°)
OKLaboklab(25.77% 0.0933 -0.0317)
OKLCHoklch(25.77% 0.099 341.2)
XYZxyz(2.7448, 1.4640, 3.0432)
Luminance0.0146 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400731 #074016
analogous
#330740 #400731 #400715
triadic
#400731 #314007 #073140
tetradic
#400731 #403307 #074016 #071540
square
#400731 #403307 #074016 #071540
split-complementary
#400731 #154007 #074033
monochromatic
#1C0315 #1C0315 #400731 #770D5B #AE1385

Accessibility & contrast

On white

16.24
#400731 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#400731 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400731
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400731#FFFFFF#000000##FFFFFF
##4007311.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1A32
Deuteranopia (green-blind)
#1F2430
Tritanopia (blue-blind)
#45081B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400731;
/* rgb */ color: rgb(64, 7, 49);
/* oklch */ color: oklch(25.8% 0.099 341.2);
Tailwind
colors: {
  custom: {
    50: '#784e69',
    500: '#400731',
    950: '#000000',
  },
}
SCSS
$custom: #400731;
$custom-light: #784e69;
$custom-dark: #000000;
JSON
{
  "hex": "#400731",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 49
  },
  "hsl": {
    "h": 315.789,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.25774,
    "c": 0.09852,
    "h": 341.2
  },
  "luminance": 0.01464
}

Semantic roles & 50–950 ramp

primary
#400731
secondary
#247F3C
accent
#F76531
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400731

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

Preview Lab → · Contrast checker → · Palette generator →

#400731 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva