#400834#400834

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

Color values

HEX#400834
RGBrgb(64, 8, 52)
HSLhsl(313, 78%, 14%)
HSVhsv(313, 88%, 25%)
CMYKcmyk(0%, 87.5%, 18.8%, 74.9%)
CIE-LABlab(12.68, 31.17, -13.47)
CIE-LCHlch(12.68, 33.96, 336.63°)
OKLaboklab(26.05% 0.0925 -0.0366)
OKLCHoklch(26.05% 0.099 338.4)
XYZxyz(2.8211, 1.5119, 3.3914)
Luminance0.0151 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400834 #084014
analogous
#300840 #400834 #400818
triadic
#400834 #344008 #083440
tetradic
#400834 #403008 #084014 #081840
square
#400834 #403008 #084014 #081840
split-complementary
#400834 #184008 #084030
monochromatic
#1B0316 #1B0316 #400834 #760F60 #AD168C

Accessibility & contrast

On white

16.12
#400834 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400834
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400834#FFFFFF#000000##FFFFFF
##4008341.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1B35
Deuteranopia (green-blind)
#1E2433
Tritanopia (blue-blind)
#440B1D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400834;
/* rgb */ color: rgb(64, 8, 52);
/* oklch */ color: oklch(26.0% 0.099 338.4);
Tailwind
colors: {
  custom: {
    50: '#774f6b',
    500: '#400834',
    950: '#000000',
  },
}
SCSS
$custom: #400834;
$custom-light: #774f6b;
$custom-dark: #000000;
JSON
{
  "hex": "#400834",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 52
  },
  "hsl": {
    "h": 312.857,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.26049,
    "c": 0.09947,
    "h": 338.4
  },
  "luminance": 0.01512
}

Semantic roles & 50–950 ramp

primary
#400834
secondary
#257E38
accent
#F45D34
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400834

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

Preview Lab → · Contrast checker → · Palette generator →

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