Three heterobimetallic 3d–4f ionic complexes, where the 3d ion is cobalt( ii ) and the 4f unit is formed by dysprosium( iii ), europium( iii ) or yttrium( iii ), have been synthesized and characterized, showing intriguing optical and magnetic properties.