add to_u32() to ToColor trait