Check out example codes for "background color using css". It will help you in understanding the concepts better.

Code Example 1

/* To apply color to background you have to use 'background-color' property and value of property is color name. */
html,body {
  background-color: blue;
}

Code Example 2

html,body {
  background-color: red;
}

Code Example 3

body {
  background-color: green;
}

Code Example 4

body {
  background-color: rgb(255,255,255);
}

Learn ReactJs, React Native from akashmittal.com