'F740BF' was not declared in this scope

I am trying to control 3 LEDs with a remote. For some reason when I try to define things to a hex and upload it it says that the hex was not declared in this scope.

#include <IRremote.h>

int RECV_PIN = 13;
IRrecv irrecv(RECV_PIN);
decode_results results;

#define BUTTON_1 F720DF
#define BUTTON_2 F7A05F
#define BUTTON_3 F7609F
#define BUTTON_ON F740BF
#define BUTTON_OFF F7C03F

int blue_LED = 12;
int red_LED = 11;
int green_LED = 10;


void setup()
{
  pinMode(blue_LED, OUTPUT);
  pinMode(red_LED, OUTPUT);
  pinMode(green_LED, OUTPUT);
  
  irrecv.enableIRIn();
}
void loop() {

  if (irrecv.decode(&results))
  {
    if (results.value == BUTTON_ON)
    {
      digitalWrite(blue_LED, LOW);
      digitalWrite(red_LED, LOW);
      digitalWrite(green_LED, LOW);
    }
    if (results.value == BUTTON_OFF)
    {
      digitalWrite(blue_LED, HIGH);
      digitalWrite(red_LED, HIGH);
      digitalWrite(green_LED, HIGH);
    }
    if (results.value == BUTTON_1)
    {
      digitalWrite(blue_LED, HIGH);
    }
    if (results.value == BUTTON_2)
    {
      digitalWrite(red_LED, HIGH);
    }
    if (results.value == BUTTON_3)
    {
      digitalWrite(green_LED, HIGH);
    }
    irrecv.resume();
  }
}

That is my code and here is the error message I get.

Arduino: 1.8.3 (Windows 10), Board: "Arduino/Genuino Uno"

C:\Users\henry\Desktop\Remore_LED\Remore_LED.ino: In function 'void loop()':

Remore_LED:10: error: 'F740BF' was not declared in this scope

 #define BUTTON_ON F740BF

                   ^

C:\Users\henry\Desktop\Remore_LED\Remore_LED.ino:30:26: note: in expansion of macro 'BUTTON_ON'

     if (results.value == BUTTON_ON)

                          ^

Remore_LED:11: error: 'F7C03F' was not declared in this scope

 #define BUTTON_OFF F7C03F

                    ^

C:\Users\henry\Desktop\Remore_LED\Remore_LED.ino:36:26: note: in expansion of macro 'BUTTON_OFF'

     if (results.value == BUTTON_OFF)

                          ^

Remore_LED:7: error: 'F720DF' was not declared in this scope

 #define BUTTON_1 F720DF

                  ^

C:\Users\henry\Desktop\Remore_LED\Remore_LED.ino:42:26: note: in expansion of macro 'BUTTON_1'

     if (results.value == BUTTON_1)

                          ^

Remore_LED:8: error: 'F7A05F' was not declared in this scope

 #define BUTTON_2 F7A05F

                  ^

C:\Users\henry\Desktop\Remore_LED\Remore_LED.ino:46:26: note: in expansion of macro 'BUTTON_2'

     if (results.value == BUTTON_2)

                          ^

Remore_LED:9: error: 'F7609F' was not declared in this scope

 #define BUTTON_3 F7609F

                  ^

C:\Users\henry\Desktop\Remore_LED\Remore_LED.ino:50:26: note: in expansion of macro 'BUTTON_3'

     if (results.value == BUTTON_3)

                          ^

exit status 1
'F740BF' was not declared in this scope

Sorry if this could be a easy fix. I am kinda new to the whole arduino thing and I couldn’t find anything on the internet that seemed to work so this is my last idea.

Hex needs leading "0x"

Use 'const unsigned long' instead of #define

.

This seemed to work thanks!