How to make rectangle with black inline in materials for UI?

I can’t use border with rounded box because outline there is grey when you set size to 1-2. I wish for just simple material with colour and inline size parameters.

You can recolor the outline of a rounded box

Imgur: The magic of the Internet Imgur: The magic of the Internet