The present invention generally relates to analytical elements and methods for the selective determination of magnesium. In particular, the present invention is further directed to carboxy-quinolizine suitable for use as magnesium indicators, and more particularly, to 4-oxo-4H-quinolizine-3-carboxylic acid derivatives for use as novel fluorescent magnesium indicators.