Skip to content

#403f49

a dark, muted gray · neutral · closest name: Dim Gray

RGB
64, 63, 73
HSL
246°, 7%, 27%
CMYK
12, 14, 0, 71
Luminance
0.0513

At a glance

Every number on this page in one read: what #403f49 is made of, how bright it looks, and which way it leans.

Hex
#403f49
Hue
246°
gray
Saturation
7%
muted
Lightness
27%
dark
Brightness
29%
HSV value
Perceived
25%
weighted brightness
Luminance
0.0513
WCAG relative
Temperature
Neutral
56/100 cool
Color family
Gray
Tone
Muted
Best ink
White
10.37:1
Closest name
Dim Gray
ΔE2000 15.7
Where it sits
Hue246° of 360°
Saturation7%
Lightness27%
Temperature
Warm ← → Cool56% cool

Near-neutral, so temperature is a whisper rather than a statement — the tinted siblings below show which way it can lean.

Every format

HEX#403f49
RGBrgb(64, 63, 73)
HSLhsl(246, 7%, 27%)
CMYKcmyk(12%, 14%, 0%, 71%)
LABlab(27.1 2.8 -5.9)
LCHlch(27.1 6.5 295.2)
OKLCHoklch(0.372 0.017 290.1)
Decimal4210505
Display P3color(display-p3 0.251 0.247 0.286)

Copy-ready code

/* CSS */
color: #403f49;
background-color: #403f49;
/* Tailwind (arbitrary) */
class="text-[#403f49] bg-[#403f49]"
/* SCSS */
$brand: #403f49;
/* SwiftUI */
Color(red: 0.251, green: 0.247, blue: 0.286)
/* Android */
Color.parseColor("#403f49")
/* Flutter */
Color(0xFF403F49)
/* Python / OpenCV (BGR) */
(73, 63, 64)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #403f49 · 10.37:1
Use #ffffffAAA at every size.
Aa
White text · 10.37:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.03:1
AA fail · AA large fail · AAA fail
Reading the other direction: #403f49 as text scores 10.37:1 on white and 2.03:1 on black.

Accessibility — WCAG contrast

Aa
#403f49 on white: 10.37:1
AA ✓ pass · AA-large · AAA
Aa
#403f49 on black: 2.03:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3D4049
deuteranopia · #3D4049
tritanopia · #3E4142

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #403f49 is pinned to step 900; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F7F7F8
#EFEFF1
#DCDCE0
#C4C3CB
#A6A5B1
#888697
#737183
#605E6E
#4D4C58
#403f49
#242429
Base = 900Lightest = 50 · #F7F7F8Darkest = 950 · #242429
:root {
  --brand-50: #F7F7F8;
  --brand-100: #EFEFF1;
  --brand-200: #DCDCE0;
  --brand-300: #C4C3CB;
  --brand-400: #A6A5B1;
  --brand-500: #888697;
  --brand-600: #737183;
  --brand-700: #605E6E;
  --brand-800: #4D4C58;
  --brand-900: #403f49;
  --brand-950: #242429;
  --brand: #403f49;
  --brand-ink: #ffffff;
}

Colors that work with #403f49

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F7F7F8
Tinted page background
Border#D4D3D9
Hairlines and dividers
Muted text#6C6A7B
Captions on the surface
Accent#4C4A3C
Second voice, not a rival
Dark variant#3C3B44
Hover, pressed, headers
Light variant#F1F1F3
Selected rows, tints
Dark surface#1A1A1E
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #403f49

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Borders, dividers and quiet backgrounds
  • Long-form reading surfaces
  • Headers, footers and dark-mode surfaces
  • Neutral UI chrome and typography
Use with care
  • Text on black or near-black surfaces
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#48493F
Analogous left#3F4349
Analogous right#453F49
Split-complement 1#49453F
Split-complement 2#43493F
Triadic 1#49403F
Triadic 2#3F4940
Tetradic#493F43

RGB percentages

Red25.1%
Green24.7%
Blue28.6%

CMYK percentages

Cyan12.3%
Magenta13.7%
Yellow0.0%
Key (black)71.4%

Color previews

#403f49 text on a black background

contrast 2.03:1

Card sample

#403f49 text on a white background

contrast 10.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #403f49;
Background color
Panel with #403f49 background
background-color: #403f49;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #403f49;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(64, 63, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 63, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #403f49;
background: linear-gradient(135deg, #403f49, #473F49);

Monochromatic scale

Palettes built from #403f49

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#403f49 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
EditorialArchitectureEnterpriseLuxury goods
Common UI roles
BackgroundsBordersBody textDividers
Print note

Converts to four-color process without much drama. Proof it anyway.

#403f49, answered

What color is #403f49?

#403f49 is a dark muted gray, closest to Dim Gray (ΔE2000 15.7). It sits at 246° on the hue wheel with 7% saturation and 27% lightness, which reads as neutral.

What is the RGB value of #403f49?

rgb(64, 63, 73) — 64 red, 63 green and 73 blue out of 255, or 25.1% / 24.7% / 28.6% by channel.

Is #403f49 a light or a dark color?

It is a dark color. Relative luminance is 0.0513 and perceived brightness is 25%, so white text on it reaches 10.37:1.

Should I use black or white text on #403f49?

White. It scores 10.37:1 against #403f49, versus 2.03:1 for black — AAA at any size.

What is the complementary color of #403f49?

#48493F sits directly opposite on the wheel. Softer options are the split-complements #49453F and #43493F, which give the same contrast with far less vibration.

What colors go well with #403f49?

For interface work: #F7F7F8 as the surface, #D4D3D9 for borders, #6C6A7B for secondary text, #4C4A3C as an accent and #3C3B44 for hover and pressed states. For a palette, the analogous pair #3F4349 and #453F49 stays calm, while #48493F is the loudest partner.

What is #403f49 in CMYK for printing?

cmyk(12%, 14%, 0%, 71%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #403f49 warm or cool?

Neutral — it scores 56 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #53483F; nudged cooler, #363F48.

Work with #403f49 in the Color Lab