Well you wouldn't take aaaaaa and turn it into 0000ff exactly, but if you want it to be a red then you would insert the aaaaaa into the color picker, any will do, but this one is the one I am referencing,
https://www.webpagefx.com/web-design/color-picker/
Once you do that in the above color...