ANSI code blocks + role colors
Discord Color Codes
Discord has no inline color syntax. Colored text in a message is done by opening an ansi code block and using ANSI escape sequences; colored names in a member list come from role colors, which are ordinary hex values set in server settings.
Colored message
```ansi
␛[0;31mThis text is red␛[0m
```
Bold + color
␛[1;34mBold blue␛[0m
Role color
Server Settings → Roles → Role Color → #5865F2
Every code
Discord Color Codes: full list
Click any value to copy it. The hex column is what the game actually renders, so you can match it exactly outside the game.
| ANSI | Color | Hex |
|---|---|---|
| ␛[0;30m | Gray | #4F545C |
| ␛[0;31m | Red | #DC322F |
| ␛[0;32m | Green | #859900 |
| ␛[0;33m | Yellow | #B58900 |
| ␛[0;34m | Blue | #268BD2 |
| ␛[0;35m | Pink | #D33682 |
| ␛[0;36m | Cyan | #2AA198 |
| ␛[0;37m | White | #FFFFFF |
For reference
Official brand palette
The platform’s own brand colors, which are a different thing from the color codes you can use inside it.
Worth knowing
ANSI code blocks render on desktop and web. Mobile clients have historically ignored them and shown the text unstyled, so never put meaning in the color alone.