Aldolisation reaction and chalcone formation
Well, actually you've made a reaction called the "Baeyer–Drewson indigo synthesis" (original article here), which was route developed in the nineteen century to obtain the indigo dye, nowadays replaced by other methods. I'm not writing the mechanism for this reaction because it is quite long and well-documented elsewhere.

Your blue compound is therefore the indigo dye represented here. As for the brown compound, it's difficult to say without more data (NMR spectra for instance), but the synthesis can give many colored intermediates or by-products such as isatin (bright red).



I hope this helps.