Mexico Flag Hex Code: Discover The Exact Color Codes (#3065DD, #FFFFFF, #20603D)

By Huoght

When working with digital design and web development, precise color representation is essential, and understanding the Mexico flag hex code is the first step. The vibrant green, white, and red bands carry deep historical meaning, and their exact values ensure brand consistency across all media. For developers, graphic designers, and marketers targeting Mexican audiences, utilizing the correct hexadecimal color code is non-national standard for accuracy.

The Primary Mexico Flag Hex Code

The most recognized and widely used Mexico flag hex code for the dominant green portion of the flag is #006847. This specific shade represents the hope and independence declared by Agustín de Iturbide during the Treaty of Córdoba. It is a deep, rich jungle green that provides a strong visual foundation and is the color most associated with Mexican national identity in digital formats.

White and Red Specifications

Surrounding the green center band is a stripe of pure white, represented by the Mexico flag hex code #FFFFFF. This bright white symbolizes unity and purity of purpose. Flanking the white band are the red sections, which convey the bloodshed by heroes during the nation's struggle for freedom; the standard Mexico flag hex code for this color is #DF191B, a vivid and intense crimson.

Mexico flag color codes
Mexico flag color codes

tr> thead> tr> tr> tr> tbody> table>

Variations and Digital Usage

While the standard codes above are the official standard, you might encounter slightly different variations depending on the context. For print projects, the corresponding Pantone colors are PMS 347 C for green and PMS 186 C for red, ensuring physical accuracy. However, for web design, sticking with the hex values is crucial for consistent rendering across different browsers and operating systems.

Understanding the difference between web-safe colors and exact brand matching is vital. The Mexico flag hex codes provided are not merely decorative values; they are the definitive source for recreating the national colors accurately. Using a close approximation can lead to a visual disconnect, so designers should always reference the specific numbers #006847, #FFFFFF, and #DF191B when building layouts or assets.

Implementation Best Practices

To implement these colors correctly in CSS, you would define them as follows: background-color: #006847; for the green band, background-color: #FFFFFF; for the white band, and background-color: #DF191B; for the red band. When creating flags for digital display or social media graphics, ensuring the hexadecimal values are copied exactly prevents any desaturation or color drift.

the mexican flag is flying high in the blue sky with color swatches on it
the mexican flag is flying high in the blue sky with color swatches on it

Respecting the symbolism encoded in these colors is just as important as the technical execution. The precise Mexico flag hex code ensures that the digital representation honors the history and culture it represents, providing clarity and professionalism to any project that incorporates this iconic design.

Paleta de color México
Paleta de color México
Mexican-inspired spicy color palette with red and green shades. Inspired by spicy peppers & cacti
Mexican-inspired spicy color palette with red and green shades. Inspired by spicy peppers & cacti
the flag of portugal is shown in black, red and green stripes with a lion emblem on it
the flag of portugal is shown in black, red and green stripes with a lion emblem on it
Color Palette 2
Color Palette 2
the color code for all different types of computers and their names are shown in this chart
the color code for all different types of computers and their names are shown in this chart
Illustrator Tricks (@AiTricks) on X
Illustrator Tricks (@AiTricks) on X
Aztec Mexican Empire
Aztec Mexican Empire
Color Formula 28: Inspiration from the Vibrant Culture of Mexico - My Scrapbook Evolution
Color Formula 28: Inspiration from the Vibrant Culture of Mexico - My Scrapbook Evolution
the mexico color palette is shown with different colors
the mexico color palette is shown with different colors
Mexico Coloring Pages
Mexico Coloring Pages
#00ffec · Color Palette
#00ffec · Color Palette
the color chart for an iphone phone with different colors and numbers on it, as well as
the color chart for an iphone phone with different colors and numbers on it, as well as
color codre Hex
color codre Hex
˖ ݁𖥔 ݁˖ 𝑀𝑒𝑥𝑖𝑐𝑎𝑛 𝐹𝑙𝑎𝑔 ˖ ݁𖥔 ݁˖
˖ ݁𖥔 ݁˖ 𝑀𝑒𝑥𝑖𝑐𝑎𝑛 𝐹𝑙𝑎𝑔 ˖ ݁𖥔 ݁˖
an orange and green striped background
an orange and green striped background
the color scheme for different font styles and colors, including red, blue, pink, green
the color scheme for different font styles and colors, including red, blue, pink, green
¡Que el orgullo mexicano se pinte en las paredes de tu hogar! ❤️💚🤍 No hay mejor forma de celebrar nuestras raíces que llenando tus espacios con los colores de nuestra bandera. 🇲🇽 Con Sensacolor, tu hogar puede ser un verdadero lienzo de tradición y patriotismo. ¡Pide nuestra paleta de colores y deja que tu casa hable por ti! 🎨🖌️ #Sensacolor #Mespatrio #Mexico #Decoracion Paleta De Colores, Flag
¡Que el orgullo mexicano se pinte en las paredes de tu hogar! ❤️💚🤍 No hay mejor forma de celebrar nuestras raíces que llenando tus espacios con los colores de nuestra bandera. 🇲🇽 Con Sensacolor, tu hogar puede ser un verdadero lienzo de tradición y patriotismo. ¡Pide nuestra paleta de colores y deja que tu casa hable por ti! 🎨🖌️ #Sensacolor #Mespatrio #Mexico #Decoracion Paleta De Colores, Flag
.
.
the colors of mexico are shown in this book
the colors of mexico are shown in this book
Palet color
Palet color
The palette
The palette
Color Combinaisons: Palette for Graphic Design #111
Color Combinaisons: Palette for Graphic Design #111
the color scheme for different types of paint colors and their corresponding names are shown in red, green, blue, yellow, brown
the color scheme for different types of paint colors and their corresponding names are shown in red, green, blue, yellow, brown
color palette
color palette

© 2026 Huoght Ideas. All rights reserved.

Load Site Average 0,422 sec
Color Band Hex Code RGB Value Pantone (approx.)
Green #006847 0, 104, 71 347 C
White #FFFFFF 255, 255, 255 White
Red #DF191B 223, 25, 27 186 C