Check out example codes for "rgba blue color". It will help you in understanding the concepts better.

Code Example 1

rgb(0,0,255)  /*blue*/   	Hex #0000FF

Code Example 2

rgb(0,128,0)  /*green*/  Hex #008000

Learn ReactJs, React Native from akashmittal.com