Update calendar.php

take into account blue component of background colour for computation of foreground colour