#400335#400335

#400335 is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.6% C 0.107 H 337.2°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#400335
RGBrgb(64, 3, 53)
HSLhsl(311, 91%, 13%)
HSVhsv(311, 95%, 25%)
CMYKcmyk(0%, 95.3%, 17.2%, 74.9%)
CIE-LABlab(12.04, 33.37, -15.21)
CIE-LCHlch(12.04, 36.67, 335.50°)
OKLaboklab(25.61% 0.0987 -0.0415)
OKLCHoklch(25.61% 0.107 337.2)
XYZxyz(2.7896, 1.4124, 3.4932)
Luminance0.0141 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400335 #03400E
analogous
#2C0340 #400335 #400316
triadic
#400335 #354003 #033540
tetradic
#400335 #402C03 #03400E #031640
square
#400335 #402C03 #03400E #031640
split-complementary
#400335 #164003 #03402C
monochromatic
#1D0118 #1D0118 #400335 #7A0665 #B50896

Accessibility & contrast

On white

16.38
#400335 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400335
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400335#FFFFFF#000000##FFFFFF
##4003351.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051A36
Deuteranopia (green-blind)
#1C2334
Tritanopia (blue-blind)
#44071C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400335;
/* rgb */ color: rgb(64, 3, 53);
/* oklch */ color: oklch(25.6% 0.107 337.2);
Tailwind
colors: {
  custom: {
    50: '#784d6c',
    500: '#400335',
    950: '#000000',
  },
}
SCSS
$custom: #400335;
$custom-light: #784d6c;
$custom-dark: #000000;
JSON
{
  "hex": "#400335",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 53
  },
  "hsl": {
    "h": 310.82,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.25607,
    "c": 0.10707,
    "h": 337.2
  },
  "luminance": 0.01412
}

Semantic roles & 50–950 ramp

primary
#400335
secondary
#1D822F
accent
#FF4F29
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090207
muted
#7B787A

Preview Lab

Preview with #400335

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

Preview Lab → · Contrast checker → · Palette generator →

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