Are ivory and gray the same color?

No. Ivory is more milky-white, and gray is more dirty-white.