One book cover includes him on the cover with a lab coat and beakers. The cover may have been blue or purple. It was very block cartoonish. He solves mysteries with a girl who is also on the cover with a lab coat on. They may have had a dog. I believe they solved mysteries in their apartment complex or school. It was a series that may have been Scholastic as I believe I got it from a book fair as a child. The book would have been out in the early 2000s.
Could it have been one of the books in the Castle Court Kids mysteries, by Zilpha Keatley Snyder?
Possibly one of Keith Robertson’s ‘Henry Reed’ books? The girl in these books is called Midge.
Encyclopedia Brown!
Loved those books