Minecraft Color Codes
Use our handy list of Minecraft color codes and format codes to style your chat and game commands, and modify in-game text, team, and even armor color!
List of Minecraft Color Codes
| Color | Name | Chat code | MOTD code | Hex |
|---|---|---|---|---|
| Black | 0 | u00A70 | ||
| Dark Blue | 1 | u00A71 | ||
| Dark Green | 2 | u00A72 | ||
| Dark Aqua | 3 | u00A73 | ||
| Dark Red | 4 | u00A74 | ||
| Dark Purple | 5 | u00A75 | ||
| Gold | 6 | u00A76 | ||
| Gray | 7 | u00A77 | ||
| Dark Gray | 8 | u00A78 | ||
| Blue | 9 | u00A79 | ||
| Green | a | u00A7a | ||
| Aqua | b | u00A7b | ||
| Red | c | u00A7c | ||
| Light Purple | d | u00A7d | ||
| Yellow | e | u00A7e | ||
| White | f | u00A7f |
Minecraft Format Codes
Format codes change typography without altering hue. Prefix each code with the section sign (§) and combine with color codes—for example, §c§l for bold red text. Use §r to reset styles.
| Format | Code | Effect |
|---|---|---|
| Obfuscated | §k | Rapidly cycles random characters through each letter position. |
| Bold | §l | Renders following text in a bold weight. |
| Strikethrough | §m | Draws a line through the middle of following text. |
| Underline | §n | Underlines following text. |
| Italic | §o | Italicizes following text. |
| Reset | §r | Clears all active color and format styles. |
How Minecraft encodes colors
Minecraft uses the section sign `§` followed by a character to style text in chat, books, signs, server MOTDs, and command output. Color codes use digits `0`–`9` and letters `a`–`f`. Format codes use letters such as `l` for bold or `o` for italic.
In the MOTD column, codes appear as Unicode escapes like `§a` (shown here as `u00A7a` for compatibility with some editors). In Java Edition chat, type `§` directly when the server or client allows it; many multiplayer servers accept `&` as an alternative prefix in plugin configurations.
Applying codes in practice
Combine color and format codes: `§c§lRed bold text§r` applies light red and bold until reset. The `§r` reset code clears all preceding styles.
Team colors, scoreboard entries, and `/tellraw` JSON use the same underlying palette with slightly different syntax—consult the Minecraft wiki for command-specific escaping.
Hex values in the table approximate how colors render in the default client; resource packs can shift appearance.