To every k-dimensional modular invariant vector space we associate a modular form on SL(2,Z) of weight 2k. We explore number theoretic properties of this form and found a sufficient condition for its vanishing which yields modular identities (e.g., Ramanujan-Watson’s modular identities). Furthermore, we focus on a family of modular invariant spaces coming from suitable two-dimensional spaces vi...