Can a Cellphone camara be used for color detection?

Hi! Im new to AR development and I have a question to ask: Is it possible to use a Smartphone camera to detect a certain color. lets say I point towards a blue wall. If the camara detects the blue color at the center of the screen a widget pops up. If the color is not blue it does not pop up.

Is it possible to do this without ARCore And ARkit aswell? I don’t Have devices capable of using those features and a device of that caliber is also realy expensive to me (Since Im only 15yrs old)

I would like to know if anything of that sort is possible and if so, the dificulty of acomplishing such a task. Also sorry for any grammar mistakes, English is not my main language.