The method is based on the specific binding of calmagite, a metallochromic indicator, to magnesium at alkaline pH with a consequent shift of the absorption spectrum of the complex. The intensity of the chromophore formed is proportional to the concentration of magnesium present in the sample.
