#400831#400831

#400831 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.9% C 0.097 H 341.3°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#400831
RGBrgb(64, 8, 49)
HSLhsl(316, 78%, 14%)
HSVhsv(316, 88%, 25%)
CMYKcmyk(0%, 87.5%, 23.4%, 74.9%)
CIE-LABlab(12.52, 30.69, -11.55)
CIE-LCHlch(12.52, 32.79, 339.37°)
OKLaboklab(25.87% 0.0921 -0.0311)
OKLCHoklch(25.87% 0.097 341.3)
XYZxyz(2.7557, 1.4857, 3.0468)
Luminance0.0149 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400831 #084017
analogous
#330840 #400831 #400815
triadic
#400831 #314008 #083140
tetradic
#400831 #403308 #084017 #081540
square
#400831 #403308 #084017 #081540
split-complementary
#400831 #154008 #084033
monochromatic
#1B0315 #1B0315 #400831 #760F5B #AD1684

Accessibility & contrast

On white

16.19
#400831 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#400831 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400831
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400831#FFFFFF#000000##FFFFFF
##4008311.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1B32
Deuteranopia (green-blind)
#1F2430
Tritanopia (blue-blind)
#45091B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400831;
/* rgb */ color: rgb(64, 8, 49);
/* oklch */ color: oklch(25.9% 0.097 341.3);
Tailwind
colors: {
  custom: {
    50: '#774f69',
    500: '#400831',
    950: '#000000',
  },
}
SCSS
$custom: #400831;
$custom-light: #774f69;
$custom-dark: #000000;
JSON
{
  "hex": "#400831",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 49
  },
  "hsl": {
    "h": 316.071,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.25874,
    "c": 0.09717,
    "h": 341.3
  },
  "luminance": 0.01485
}

Semantic roles & 50–950 ramp

primary
#400831
secondary
#257E3D
accent
#F46734
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400831

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

Preview Lab → · Contrast checker → · Palette generator →

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