#400835#400835

#400835 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 26.1% C 0.100 H 337.5°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#400835
RGBrgb(64, 8, 53)
HSLhsl(312, 78%, 14%)
HSVhsv(312, 88%, 25%)
CMYKcmyk(0%, 87.5%, 17.2%, 74.9%)
CIE-LABlab(12.74, 31.34, -14.11)
CIE-LCHlch(12.74, 34.37, 335.77°)
OKLaboklab(26.11% 0.0926 -0.0384)
OKLCHoklch(26.11% 0.1 337.5)
XYZxyz(2.8439, 1.5210, 3.5113)
Luminance0.0152 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400835 #084013
analogous
#2F0840 #400835 #400819
triadic
#400835 #354008 #083540
tetradic
#400835 #402F08 #084013 #081940
square
#400835 #402F08 #084013 #081940
split-complementary
#400835 #194008 #08402F
monochromatic
#1B0317 #1B0317 #400835 #760F62 #AD168F

Accessibility & contrast

On white

16.10
#400835 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400835
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400835#FFFFFF#000000##FFFFFF
##4008351.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1C36
Deuteranopia (green-blind)
#1E2434
Tritanopia (blue-blind)
#440B1E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400835;
/* rgb */ color: rgb(64, 8, 53);
/* oklch */ color: oklch(26.1% 0.100 337.5);
Tailwind
colors: {
  custom: {
    50: '#774f6c',
    500: '#400835',
    950: '#000000',
  },
}
SCSS
$custom: #400835;
$custom-light: #774f6c;
$custom-dark: #000000;
JSON
{
  "hex": "#400835",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 53
  },
  "hsl": {
    "h": 311.786,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.26109,
    "c": 0.10026,
    "h": 337.5
  },
  "luminance": 0.01521
}

Semantic roles & 50–950 ramp

primary
#400835
secondary
#257E37
accent
#F45934
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090207
muted
#7B787A

Preview Lab

Preview with #400835

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

Preview Lab → · Contrast checker → · Palette generator →

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