Summary
I want to give my self a brownish leather cap with a custom name of "Camo-Armor" So i used this command
/give @p leather_helmet{display:{Name:"{\"text\":\"CamoArmor\",\"color\":\"red\",\"bold\":\"true\"}"},color:5841442}
but it gave me a leather cap that isn't dyed but has a name!
Then i thought i wrote the command wrong so i typed this instead and it showed no errors
/give @p leather_helmet{display:{Name:"{\"text\":\"Camo-Armor\",\"color\":\"red\",\"bold\":\"true\"}"},display:}
But this time it gave a brown cap but it didn't have the name!