Neumorphism Shadows: Why They Look Flat and How to Fix Them

Contents
You've probably built a neumorphism (soft UI) card and gotten a blurry smudge instead of the soft raised look in the example images. If you copied the box-shadow values straight over and still got a different result, the slider numbers are probably not the problem — your background color setup is.
A neumorphic shadow isn't one shadow. It's two: a light shadow and a dark shadow, layered in opposite directions. Let's walk through why you need both, and why the background color decides how the whole thing turns out.
Summary ① A neumorphic shadow is complete only when a light shadow and a dark shadow sit on opposite sides of the element. ② The element's background color and the parent (outer) background color must match exactly for the raised or pressed effect to work. ③ The difference between flat, convex, and concave isn't the shadow direction — it's whether the surface itself gets a gradient.
Why It Still Looks Flat Even With Shadows
A normal box-shadow uses a single shadow. One dark shadow falls to one side, which makes the element look like it's floating slightly above the background.
Neumorphism adds a second shadow. The dark shadow goes to the bottom right while the light shadow goes to the top left at the same time, creating the illusion of a single light source shining from above. If either shadow gets swallowed by the background and disappears, only the remaining one shows, so the whole thing just looks like an ordinary drop shadow.
The light shadow is close to white, so it's nearly invisible on a white background. That leaves only the dark shadow, which is why it reads as a "flat smudge."
How to Check the Math by Hand
You can build these shadow values with nothing but a color calculator — no official documentation required. Here's the order.
Calculating the Two Shadow Colors
First, convert the HEX value of the base color you'll use for the card into RGB numbers. For example, light gray e0e5ec is R 224, G 229, B 236.
Next, pick an intensity percentage (say 15%). The dark shadow color is that RGB value mixed 15% of the way toward black (0, 0, 0), and the light shadow color is the same RGB value mixed 15% of the way toward white (255, 255, 255).
Finally, choose the shadow distance and blur you want, then list both shadows in box-shadow, separated by a comma. Write the dark shadow as (distance, distance, blur, dark color) and the light shadow as (-distance, -distance, blur, light color) — same numbers, opposite signs.
Match the Background and the Shadows Come Together
One more condition matters most here. The card's own background color and the background color of the outer element wrapping it must be exactly the same base color. If they differ, the shadow math can be perfect and one shadow will still sink into the background and vanish.
Check it with our free Neumorphism (Soft UI) Generator. Converting a color to RGB and mixing it twice by hand gets old fast. Just set the base color and intensity, and it calculates both shadow values for you and shows them as CSS.
Free · No sign-up · Set a base color and intensity and the dual-shadow CSS is calculated for you to copy

Common Sticking Points
| Symptom | Cause |
|---|---|
| Shadows are there but it looks flat | The card background color and the parent (outer) background color are different |
| The shadow looks wrong on a white background | The light shadow blends into white and is effectively invisible |
| Clicking convex or concave doesn't change the shadow direction | Working as intended. The shadow direction is fixed; only the surface gradient changes |
| Raising the intensity doesn't make it feel softer | If the blur value is too small, higher intensity just makes the shadow harder-edged |
Recap
- A neumorphic shadow is made by layering a dark shadow (mixed toward black) and a light shadow (mixed toward white) on opposite sides.
- The card background color and the parent background color must be exactly the same so both shadows show and the raised or pressed effect comes through.
- Flat, convex, and concave are distinguished by the direction of the brightness gradient on the surface, not by the shadow itself.
- If the backgrounds differ, the light shadow is the first to disappear into the background. So when the shadow looks flat, check whether the backgrounds match before you touch the sliders.
Free · No sign-up · Set a base color and intensity and the dual-shadow CSS is calculated for you to copy
Frequently Asked Questions
Why does my neumorphism card look weird on a white background?
The light shadow is the base color mixed toward white, so it barely differs in brightness from a white background. That leaves only the dark shadow visible, which makes it look like a normal shadow. Set the background around the card to the base color too (light gray, for example) and both shadows appear.
Do convex and concave use different shadow directions?
The shadow direction and colors are identical in both shapes. The difference is the gradient on the card's surface. Convex runs the surface gradient from light to dark, and concave reverses the order so it runs from dark to light.
What percentage should I set for intensity?
There's no single correct answer — the value is the ratio at which the base color is mixed toward black and white. Lower values bring the shadows closer to the background for a subtler look, while higher values increase contrast and make them more pronounced, at the cost of the soft feel. The most accurate approach is to adjust the ratio while the background and card colors match, and compare by eye.
This article was adapted from our Korean original. Read the Korean original