I do know that most people in Mexico do not know about wire color codes or that there are any codes. But as far as I can tell there actually are codes. I found a lot online about electrical codes in Mexico. Some of what I found goes back to the 90s but the web links don’t work anymore. Mexico did use codes at least back to the 90s but they also adopted the US National Electrical Code NEC 2011 in 2013 – which from what I can find was the latest update. As far as wiring size and color coding of wires as near as I can tell none of that has changed much in a very long time – at least back to the 60s when I was learning about this stuff. So here is some of what I found. As usual there is way too much information (TMI) and most readers will ignore it. But if you breeze through it you may at least learn that in Mexico there is a code and you will also see what the colors of the wires are supposed to be. Again, I do well know that this may not be what you find in Mexico – but the laws do exist – whether anyone follows them or not.
http://www.iaei.org/web/Online/Regulations/regulations.aspx#Mexico
Mexico
In November 2012, Mexico adopted the NEC 2011. It will be active as of May 30, 2013. The new regulation for electrical regulations is a Norma Oficial Mexicana NOM-001-SEDE-2012 Instalaciones Eléctricas, Utilización.
Ministry of the Economy
Av. Tecnológico No. 106 Ex-Hda. Ojo Caliente Col. 4° Centenario
Zip Code 20190
Area Code: (01) (449)
Telephone(s): 9702501, 9702503, 9702504, 9703315 Fax: 9702502
Adopted Code. 2011 National Electrical Code, effective May 30, 2013
https://www.nema.org/news/Pages/Proposed-Mexico-Electrical-Code-Published-in-the-Official-Journal.aspx
Proposed Mexico Electrical Code Published in the Official Journal
NEMA > News
07/27/2012
It’s official! Publication of the draft Mexico Electrical Installation Code NOM-001-SEDE 2012 by the Secretary of Energy on 27 July 2012 in the Official Journal of the Federation (equivalent to the US Federal Register) moves Mexico one huge step closer to adopting a revised electrical code based on the 2011 NEC®. This is a big deal because it officially establishes the base for the new revision and only permits small changes from this point forward. Equally significant is the fact that a formal timeline has now been established. Beginning with the publication there is now a 60 day public comment period, which will be followed by a review of the comments and final publication. NEMA’s Mexico staff, who has been collaborating with numerous organizations in Mexico to get this specific draft version to this point, is on the committee slated to review the public comments.
I found a thread about code in Mexico but it is old and the links do not seem to work to find more info.
http://control.com/thread/945975891
The CFE website where searching can turn up more about codes.
http://www.cfe.gob.mx/paginas/Home.aspx
Here’s another thread that talks about code in Mexico
https://www.nachi.org/forum/f19/electrical-systems-mexico-central-america-5781/
http://www.testandmeasurementtips.com/basics-of-the-national-electrical-code-and-the-locations-it-covers/
Basics of the National Electrical Code
and the Locations it Covers
AUGUST 10, 2015
A revised edition of the NEC is published every three years, with many changes. Outside the U.S., several countries including Mexico and Venezuela have incorporated the NEC into their laws.
https://www.allaboutcircuits.com/textbook/reference/chpt-2/wiring-color-codes/
The US National Electrical Code only mandates white (or grey) for the neutral power conductor and bare copper, green, or green with yellow stripe for the protective ground. In principle any other colors except these may be used for the power conductors. The colors adopted as local practice are shown in Table below. Black, red, and blue are used for 208 VAC three-phase; brown, orange and yellow are used for 480 VAC. Conductors larger than #6 AWG are only available in black and are color taped at the ends.
Wire color code tables
https://www.labelidsystems.com/blog/2016/06/01/international-wiring-color-codes-for-ac-power-circuits/

Click For Full-Size Image.
http://www.electronicshub.org/electrical-wiring-color-codes/

Click For Full-Size Image.
https://en.wikipedia.org/wiki/Electrical_wiring
United States
The United States National Electrical Code requires a green or green/yellow protective conductor (ground), a white or grey neutral, and a black single phase.

Click For Full-Size Image.
https://en.wikipedia.org/wiki/Ground_(electricity)
Ground (electricity)
https://en.wikipedia.org/wiki/Ground_and_neutral
Ground and neutral
As the neutral point of an electrical supply system is often connected to earth ground, ground and neutral are closely related. Under certain conditions, a conductor used to connect to a system neutral is also used for grounding (earthing) of equipment and structures. Current carried on a grounding conductor can result in objectionable or dangerous voltages appearing on equipment enclosures, so the installation of grounding conductors and neutral conductors is carefully defined in electrical regulations. Where a neutral conductor is used also to connect equipment enclosures to earth, care must be taken that the neutral conductor never rises to a high voltage with respect to local ground.
https://electronics.stackexchange.com/questions/227060/us-wire-color-coding-clarification
In the USA, the National Electrical Code says:
Ground must be green, bare or green/yellow (that last a concession to EU harmonization.)
Gray or white are neutral.
Hot wires can be any other color, including blue.