I'd just make two layers. Use the rectangle box tool to make the colored box. Then on top of that layer, I'd use the text option to write text.
Here's a screenshot of the toolbar. Highlighted in the red box is the shape tool and in the green box is the text tool. Using these tools will automatically create a new layer.