Once he was called upon to decide between a dark-skinned king and the king's wife; the wife having been accused of infidelity after bearing a white child. Akiva ascertained that the royal chamber was adorned with white marble statuary, and, based on the theory that a child is similar in nature to whatever its parents gazed upon while conceiving the child, he exonerated the queen from suspicion.
https://en.wikipedia.org/wiki/Rabbi_Akiva
White wife with black husband gives birth to white child
Rabbi makes excuse