Need much more information and details on your beardie's setup and your husbandry otherwise we can't even hazard a guess.
Here's my Cheat Sheet :
viewtopic.php?f=6&t=234738&p=1806050#p1806050
If you work through it methodically , the chances are there are likely a lot of issues that need to be tweeked or changed and they will pop right out at you, if you can give very detailed answers we will then be in a position to offer help. Is impossible to help you if you don't provide thorough details .
A constant
black beard is very bad sign when it's related to beardie health issues.
It will be very wise to involve a reptile vet as it appears your bearded dragon has serious health issues. Are you in a position to afford to take him to a good reptile vet should this prove necessary ?
A vet appointment with a good reptile vet is probably best made your highest priority ATM.
Before you go to my cheatsheet and go methodically through it.
Q1 / what is the substrate ( not that I think your's is impacted but it could the substrate harboring something nasty that's made him sick )
Q2 / UV source
>>a) age
>>b) brand
>>c) type and wattage and %UVB rating
>>d) reflector behind it
>>e) ontop a mesh/screen lid ?
>>f) how far from basking spot
Q3 / temperatures
Q4 / diet and feeding schedule