There are multiple horizontal centering methods in Bootstrap

Detailed documentation and more examples you can find in our Bootstrap Horizontal alignment Docs


mx-auto

mx-auto (auto x-axis margins) will center display:block or display:flex elements that have a defined width, (%, vw, px, etc..). Flexbox is used by default on grid columns, so there are also various flexbox centering methods.

In your case, use mx-auto to center the col-3 and text-center to center it's content..

center

or, using justify-content-center on flexbox elements (.row):

center