#40303A#40303A

#40303A is a dark, muted pink. Relative luminance 0.035; OKLCH L 33.1% C 0.028 H 340.9°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#40303A
RGBrgb(64, 48, 58)
HSLhsl(323, 14%, 22%)
HSVhsv(323, 25%, 25%)
CMYKcmyk(0%, 25%, 9.4%, 74.9%)
CIE-LABlab(21.98, 9.27, -3.53)
CIE-LCHlch(21.98, 9.92, 339.18°)
OKLaboklab(33.1% 0.0268 -0.0093)
OKLCHoklch(33.1% 0.028 340.9)
XYZxyz(3.9350, 3.5095, 4.4723)
Luminance0.0351 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40303A #304036
analogous
#3E3040 #40303A #403032
triadic
#40303A #3A4030 #303A40
tetradic
#40303A #403E30 #304036 #303240
square
#40303A #403E30 #304036 #303240
split-complementary
#40303A #324030 #30403E
monochromatic
#110D10 #1D161A #40303A #634A5A #866479

Accessibility & contrast

On white

12.34
#40303A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#40303A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40303A
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40303A#FFFFFF#000000##FFFFFF
##40303A1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31333A
Deuteranopia (green-blind)
#34363A
Tritanopia (blue-blind)
#423033
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #40303a;
/* rgb */ color: rgb(64, 48, 58);
/* oklch */ color: oklch(33.1% 0.028 340.9);
Tailwind
colors: {
  custom: {
    50: '#756870',
    500: '#40303a',
    950: '#000000',
  },
}
SCSS
$custom: #40303a;
$custom-light: #756870;
$custom-dark: #000000;
JSON
{
  "hex": "#40303a",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 58
  },
  "hsl": {
    "h": 322.5,
    "s": 14.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33098,
    "c": 0.02837,
    "h": 340.9
  },
  "luminance": 0.03509
}

Semantic roles & 50–950 ramp

primary
#40303A
secondary
#5C7063
accent
#B78B71
background
#F7F6F6
surface
#EDEBEC
border
#C8C6C7
text
#080607
muted
#7B7A7A

Preview Lab

Preview with #40303A

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

Preview Lab → · Contrast checker → · Palette generator →

#40303A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva