This article discusses the development of an interactive web-based system for modelling light refraction and dispersion in optical systems. A web service has been developed using ASP.NET Core, SQL Server and the HTML5 Canvas API. The scientific novelty lies in combining the accuracy of relational databases with the flexibility of a web interface for modelling optical processes, taking into account the dispersion of real glass types. The system allows the selection of glass type, the input of lens parameters, the calculation of focal length for different wavelengths, and graphical visualisation. Testing confirmed an accuracy of <0.1% and a processing time of ≤100 ms. The system is cross-platform. The results confirm the suitability of using web technologies for educational purposes in the disciplines of ‘Geometric Optics’ and ‘Physics’. Keywords: web system, light dispersion, ASP.NET Core, SQL Server, mathematical modelling