Quantitative analysis of colored substances is generally performed using a spectrophotometer for detection of radiation. However, the combination of digital images and mathematical conversion of colors is an alternative for quantitative procedures based on colored chemical reactions. This work proposes a didactic experiment using a scanner for determination of ascorbic acid in medicines based on the formation of the Prussian blue complex. Results were in good agreement with a conventional spectrophotometer method and the procedure is attractive for instrumental analysis undergraduate courses.