This Code Is Correct, But I Keep Getting Errors for the Blue RGB and Corresponding H1 Tag

This Code Is Correct, But I Keep Getting Errors for the Blue RGB and Corresponding H1 Tag
0.0 0

#1

I am a developer who works with HTML, CSS, and much more everyday. It’s really frustrating to be stopped in my tracks with what is likely a bug. The CSS and the HTML are correct for the color Blue, yet I get “Give your h1 element with the text I am blue! the color blue.
Use rgb for the color blue.” I have redone this several times, and am stumped as to why only this color throws an error when all the other colors work fine (and are identical, except for the RGB values).

<style>
  .red-text {
    color: RGB(255, 0, 0);
  }
  .orchid-text {
    color: RGB(218, 112, 214);
  }
  .sienna-text {
    color: RGB(160, 82, 45);
  }
  .blue-text {
    color: RGB(0, 0, 225);
  }
</style>

<h1 class="red-text">I am red!</h1>

<h1 class="orchid-text">I am orchid!</h1>

<h1 class="sienna-text">I am sienna!</h1>

<h1 class="blue-text">I am blue!</h1>

Thoughts?

UPDATE: Strangely, I copied and pasted the rgb value for blue from the left sidebar in this challenge and it accepted that CSS rule. Is it possible there is white space or something being injected when manually entering the rgb values? I rewrote that rule about 10 times before I created this question.


#2

Please could you link to the challenge you’re trying to solve?


#3

The issue with your code was:

  .blue-text {
    color: RGB(0, 0, 225);
  }

Blue is 0, 0, 255 not 0, 0, 225 as you have above.


#4

Thank you. I didn’t catch the typo in the last rgb value:)