Every Minecraft color code starts with the section sign, §, followed by one character. Codes §0 to §9 and §a to §f give the 16 standard text colors in Minecraft Java Edition and Bedrock Edition. Put the code directly in front of the text you want to color.
All Minecraft Color Codes
| Code | Color | Minecraft name | Hex |
|---|---|---|---|
| §0 | Black | black | #000000 |
| §1 | Dark Blue | dark_blue | #0000AA |
| §2 | Dark Green | dark_green | #00AA00 |
| §3 | Dark Aqua | dark_aqua | #00AAAA |
| §4 | Dark Red | dark_red | #AA0000 |
| §5 | Dark Purple | dark_purple | #AA00AA |
| §6 | Gold | gold | #FFAA00 |
| §7 | Gray | gray | #AAAAAA |
| §8 | Dark Gray | dark_gray | #555555 |
| §9 | Blue | blue | #5555FF |
| §a | Green | green | #55FF55 |
| §b | Aqua | aqua | #55FFFF |
| §c | Red | red | #FF5555 |
| §d | Light Purple | light_purple | #FF55FF |
| §e | Yellow | yellow | #FFFF55 |
| §f | White | white | #FFFFFF |
The hex values are the Java Edition shades. Bedrock Edition draws some of these colors a little differently, most visibly gray (§7) and blue (§9).
Text codes only change text. For colored blocks and items, see the white dye guide, the cushion colors guide and, for your character, the skin making guide.
Minecraft Formatting Codes
Formatting codes work the same way as color codes and can be stacked with them.
| Code | Effect | Editions |
|---|---|---|
| §k | Obfuscated (scrambled, changing characters) | Java and Bedrock |
| §l | Bold | Java and Bedrock |
| §m | Strikethrough | Java only |
| §n | Underline | Java only |
| §o | Italic | Java and Bedrock |
| §r | Reset to plain text | Java and Bedrock |
Bedrock Edition Extra Colors
Bedrock Edition has 13 more color codes on top of the standard 16. Most of them match the armor trim materials.
| Code | Color |
|---|---|
| §g | Minecoin Gold |
| §h | Quartz |
| §i | Iron |
| §j | Netherite |
| §m | Redstone |
| §n | Copper |
| §p | Gold |
| §q | Emerald |
| §s | Diamond |
| §t | Lapis |
| §u | Amethyst |
| §v | Resin |
| §w | Party Blue |
Because Bedrock uses §m for Redstone and §n for Copper, strikethrough and underline do not exist there.
How to Use Color Codes
Bedrock Edition
Bedrock accepts codes in chat, on signs and hanging signs, in books and in item names you type on an anvil. Typing §aShop on a sign, for example, shows the word in green. The newer Bedrock menus, such as the world list, ignore the codes and show plain text.
Java Edition
Java Edition uses the codes mostly outside normal play: world names, server names and the server message of the day. In server.properties and pack.mcmeta, write the code as \u00A7 plus the character instead of the § symbol, so \u00A7a gives green.
How to Type the Section Sign
| Device | How to type § |
|---|---|
| Windows | Hold Alt and type 21 or 0167 on the number pad |
| Mac | Press Option + 6 |
| Android | Open the second page of symbols on the keyboard |
| Any device | Copy § from this page and paste it |






