Minecraft color and formatting codes
| Code | Effect | Code | Effect |
|---|---|---|---|
| &0 | Black | &8 | Dark gray |
| &1 | Dark blue | &9 | Blue |
| &2 | Dark green | &a | Green |
| &3 | Dark aqua | &b | Aqua |
| &4 | Dark red | &c | Red |
| &5 | Dark purple | &d | Light purple |
| &6 | Gold | &e | Yellow |
| &7 | Gray | &f | White |
| &l | Bold | &o | Italic |
| &n | Underline | &m | Strikethrough |
| &k | Obfuscated (scrambled) | &r | Reset |
A color code resets bold/italic/underline, so put formatting codes after the color: &a&lBold green, not &l&aBold green.
& vs §, and Java vs Bedrock vs servers
- § (section sign) is what the game itself reads. Use it in
server.propertiesMOTDs (written as\u00A7in some setups), signs and books via commands, and Bedrock chat. - & is a plugin convention (EssentialsX, LuckPerms and most Spigot/Paper plugins translate
&to§). Vanilla Java chat doesn’t accept either from players. - Hex colors (
&#RRGGBB, MiniMessage) need Java 1.16+ and plugin support. Bedrock doesn’t support hex colors. - Bedrock adds extra codes such as
§g(Minecoin gold) and a set of material colors. On Bedrock,§mand§nare colors, not strikethrough and underline, which Bedrock doesn’t have. - Vanilla Java commands like
/tellrawand/titleuse JSON text components ({"text":"Hi","color":"green","bold":true}) instead of codes.