#402230#402230

#402230 is a dark, muted pink. Relative luminance 0.024; OKLCH L 29.7% C 0.050 H 351.2°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#402230
RGBrgb(64, 34, 48)
HSLhsl(332, 31%, 19%)
HSVhsv(332, 47%, 25%)
CMYKcmyk(0%, 46.9%, 25%, 74.9%)
CIE-LABlab(17.68, 16.61, -2.99)
CIE-LCHlch(17.68, 16.88, 349.79°)
OKLaboklab(29.69% 0.0498 -0.0077)
OKLCHoklch(29.69% 0.05 351.2)
XYZxyz(3.2199, 2.4477, 3.0986)
Luminance0.0245 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402230 #224032
analogous
#40223F #402230 #402322
triadic
#402230 #304022 #223040
tetradic
#402230 #3F4022 #224032 #232240
square
#402230 #3F4022 #224032 #232240
split-complementary
#402230 #224023 #223F40
monochromatic
#140B0F #180D12 #402230 #68374E #904C6C

Accessibility & contrast

On white

14.10
#402230 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#402230 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402230
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402230#FFFFFF#000000##FFFFFF
##4022301.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252830
Deuteranopia (green-blind)
#2D2D2F
Tritanopia (blue-blind)
#442127
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #402230;
/* rgb */ color: rgb(64, 34, 48);
/* oklch */ color: oklch(29.7% 0.050 351.2);
Tailwind
colors: {
  custom: {
    50: '#765e68',
    500: '#402230',
    950: '#000000',
  },
}
SCSS
$custom: #402230;
$custom-light: #765e68;
$custom-dark: #000000;
JSON
{
  "hex": "#402230",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 48
  },
  "hsl": {
    "h": 332,
    "s": 30.612,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29688,
    "c": 0.05035,
    "h": 351.2
  },
  "luminance": 0.02447
}

Semantic roles & 50–950 ramp

primary
#402230
secondary
#4B7360
accent
#C79761
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#080406
muted
#7B797A

Preview Lab

Preview with #402230

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

Preview Lab → · Contrast checker → · Palette generator →

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