Navigating the vibrant world of Minecraft often requires precision, especially when you are trying to replicate a specific brand color or create a perfectly coordinated build. Understanding how the game interprets color is the first step towards mastering its visual language, and that journey begins with the foundational format of decimal and hexadecimal color codes.
Decoding the Format: Hex vs. Decimal
Before diving into the specific values, it is essential to understand the two primary syntaxes used in Minecraft. The hexadecimal format, often seen with a preceding hash symbol (e.g., #FF0000), is the standard used on platforms like Discord and in modern resource packs, offering a wide spectrum of colors. The decimal format, however, is the legacy system ingrained in the game's chat commands, where each color is assigned a specific integer between 0 and 15. While hex is more intuitive for designers, decimal remains crucial for executing in-game commands, making literacy in both systems non-negotiable for any serious builder.
Applying Color to Text
Adding color to your chat messages or signs transforms communication into a personal statement, allowing you to highlight warnings, create stylish announcements, or simply add flair to your interactions. To apply these codes to text, you utilize the section symbol (§) followed by the corresponding code. This character acts as a switch, telling the game to render the subsequent text in the chosen hue. Whether you are alerting your server to danger or decorating a monument, mastering this technique ensures your words are as visually striking as your structures.

The Core Palette: Numbers and Names
Minecraft's standard color palette is built upon a simple yet effective numbering system. Each color is mapped to a number from 0 to 15, providing a reliable reference for commands and coding. This system ensures consistency across different versions and platforms, allowing players to share codes with confidence that the visual result will match expectations. Below is a comprehensive table detailing these numbers, their common names, and their hexadecimal equivalents, serving as a definitive guide for any project.
| Decimal | Hex Code | Color Name |
|---|---|---|
| 0 | #000000 | black |
| 1 | #0000AA | dark_blue |
| 2 | #00AA00 | dark_green |
| 3 | #00AAAA | dark_aqua |
| 4 | #AA0000 | dark_red |
| 5 | #AA00AA | dark_purple |
| 6 | #FFAA00 | gold |
| 7 | #AAAAAA | gray |
| 8 | #555555 | dark_gray |
| 9 | #5555FF | blue |
| 10 | #55FF55 | green |
| 11 | #55FFFF | aqua |
| 12 | #FF5555 | red |
| 13 | #FF55FF | light_purple |
| 14 | #FFFF55 | yellow |
| 15 | #FFFFFF | white |
Advanced Styling: Formatting Codes
Color is just one aspect of text formatting; Minecraft also allows you to manipulate the weight and style of your letters to achieve a polished look. Formatting codes reset the text to default before applying the specific style, such as bold or italic, ensuring the formatting is consistent across the entire message. These codes are invaluable for creating clean GUIs in programming tasks, adding emphasis to lore, or designing complex maps where visual hierarchy guides the player experience.
Formatting Code Reference
To apply these styles, you use the same section symbol (§) followed by a specific letter. For instance, §l locks in bold text for headings, while §o applies italics for a subtle, academic tone. These modifiers can be combined with color codes to create a virtually endless combination of text appearances. Below is a quick reference for the most commonly used formatting options available to you.

| Code | Effect |
|---|---|
| l | Bold |
| m | Strikethrough |
| n | Underline |
| o | Italic |
| r | Reset |
Execution in Practice
Translating this knowledge into action depends on the context. In Java Edition, commands like /tellraw utilize JSON text components, where color is applied as a property string (color: "red"). In Bedrock Edition, the format shifts to a colon-based syntax (color: "red") within its command blocks. For resource pack creators working with JSON files, the format typically requires the hex code without the hash symbol. Understanding these environmental nuances ensures that your code executes smoothly, regardless of the platform you are using.
Troubleshooting and Best Practices
Even with the correct code, visual discrepancies can occur, often due to client caching or server settings. If a color appears incorrect, resetting your resource packs or clearing the chat history often resolves the issue. Additionally, remember that the legacy formatting code must directly touch the text string; codes typed separately in chat will not affect adjacent text. Always utilize the reset code (§r) if you wish to terminate a color effect mid-line, preventing the style from bleeding into subsequent messages and maintaining clean, professional text output.
Helpful Minecraft Color Codes and Format Codes - Mom's Got the Stuff
Minecraft color codes - tatatags
Minecraft Color Codes _ All Minecraft Color Codes – PCETSK
Minecraft Color Codes Everything You Need To Know
Minecraft Color Codes Bedrock
Minecraft Colour Key
Bukkit Color Codes
Colores Codigos Minecraft Tutorial Cmo Utilizar Cdigos De Colores
Minecraft: All Color Codes And Format Codes – TWMWFE
Minecraft Color Codes: The Complete Guide for Players - Codingal
Minecraft Color Codes
Minecraft Skin Color Code – Color Palette Minecraft Skins – EEKJRM
All Color Codes in Minecraft: Hướng Dẫn Chi Tiết và Mẹo Sử Dụng
Minecraft Bedrock Color Codes : Minecraft Armor ID List – KOFHNY
Minecraft color codes
Minecraft Color Codes _ A Complete List of Minecraft Color Codes – FDJY
Minecraft Xp Color Code
Colores Minecraft Códigos , Minecraft Color Codes – ITULM
Minecraft Color Codes - Everything You Need to Know
Minecraft Color Codes & Formatting (MiniMessage codes included ...