The color codes on the toothpaste indicate whether the toothpaste is natural or contains chemicals.
Green square = Natural. Blue square = Natural + Medicine. Red square = Natural + Chemical composition. Black square = Pure Chemical.
In short the colors tell you what's in the toothpaste so if you want to know what's in the toothpaste then you can pay attention to the colors indicated on the toothpaste tube.