#400828#400828

#400828 is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.4% C 0.091 H 350.8°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#400828
RGBrgb(64, 8, 40)
HSLhsl(326, 78%, 14%)
HSVhsv(326, 88%, 25%)
CMYKcmyk(0%, 87.5%, 37.5%, 74.9%)
CIE-LABlab(12.07, 29.35, -5.61)
CIE-LCHlch(12.07, 29.88, 349.18°)
OKLaboklab(25.41% 0.0899 -0.0146)
OKLCHoklch(25.41% 0.091 350.8)
XYZxyz(2.5843, 1.4172, 2.1445)
Luminance0.0142 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400828 #084020
analogous
#3C0840 #400828 #40080C
triadic
#400828 #284008 #082840
tetradic
#400828 #403C08 #084020 #080C40
square
#400828 #403C08 #084020 #080C40
split-complementary
#400828 #0C4008 #08403C
monochromatic
#1B0311 #1B0311 #400828 #760F4A #AD166C

Accessibility & contrast

On white

16.36
#400828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#400828 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400828
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400828#FFFFFF#000000##FFFFFF
##4008281.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121929
Deuteranopia (green-blind)
#222327
Tritanopia (blue-blind)
#460517
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400828;
/* rgb */ color: rgb(64, 8, 40);
/* oklch */ color: oklch(25.4% 0.091 350.8);
Tailwind
colors: {
  custom: {
    50: '#784e61',
    500: '#400828',
    950: '#000000',
  },
}
SCSS
$custom: #400828;
$custom-light: #784e61;
$custom-dark: #000000;
JSON
{
  "hex": "#400828",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 40
  },
  "hsl": {
    "h": 325.714,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.25406,
    "c": 0.0911,
    "h": 350.8
  },
  "luminance": 0.01417
}

Semantic roles & 50–950 ramp

primary
#400828
secondary
#257E4C
accent
#F48634
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090205
muted
#7B7879

Preview Lab

Preview with #400828

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

Preview Lab → · Contrast checker → · Palette generator →

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