A mobile phone has been used both as illumination source and image detector for quantitative optical analysis of colored liquid samples (4 different colorants) and solid samples (printed color patterns, plastic beads and colored sand grains). Even though the measurement conditions were far from ideal, because the light source was strongly polychromatic and the illumination was not a collimated light beam with homogeneous light intensity, a logarithmic concentration dependence, in accordance with the Beer-Lambert law, described the data of the colored liquids quite well. By utilizing blue-blue (420-510 nm), green-green (480-590 nm) and red-red (575-695 nm) illumination/detection combinations, each sample could be assigned a unique color signature for classification that agreed with reference absorbance spectra measured with a spectrometer. Quantification of validation samples within a few percent of the actual values was achieved. Also the long-term repeatability of the measurements was investigated and was surprisingly good for such a simple system. Analysis of the colored solid samples was more complex with results being dependent on the morphology and colorimetric properties of the samples