@felix_rabe thanks! It works!
Just in case someone also needs this:
<script>
window.laytheme.on("newpageshown", function(){
var color = jQuery("#custom-phone-grid").css('background-color');
jQuery("#footer-custom-phone-grid").css('background-color', color);
})
</script>