The comparison implies that whatever is being described is as white as the purest white imaginable, invoking the purity and innocence associated with the Virgin Mary.
While it's not a particularly common saying in modern usage, it may be used in poetry, literature, or humorous context to emphasize the whiteness of something.