I modified the background color using \setbeamercolor{background canvas}{bg=blue!25}. However, the shadow of the blocks fade from black to white and not to the background color (resulting in a tiny white stripe around the shadow before the background color takes over), see code below.
I found the following fix How to add a transparent shadow to a block in beamer?
(there the white line around the shadow can also be seen clearly)
However, the modified version of beamerbaseboxes.sty seems to be outdated, since it changes the appearance of the whole presentation, not only the shadows. Since I do not want transparent shadows but merely shadows that fade into the background color, I would like to ask how to achieve this without hacking the beamerbaseboxes.sty file.
\documentclass{beamer}
\usetheme{Madrid}
\setbeamercolor{background canvas}{bg=blue!25}
\begin{document}
\frame{
\begin{block}{test block}
block block
\end{block}
}
\end{document}

