AN thread

The AN thread is a particular type of fitting used to connect flexible hoses and rigid metal tubing that carry fluid. It is a US military-derived specification that dates back to World War II and stems from a joint standard agreed upon by the Army and Navy, hence AN. The Army-Navy involvement is also the origin of the red/blue color combination that was traditionally used in the anodized finishing process. 
AN sizes range from -2 (dash two) to -32 in irregular steps, with each step equating to the OD (outside diameter) of the tubing in -inch increments. Therefore, a -8 AN size would be equal to -inch OD tube. However, this system does not specify the ID (inside diameter) of the tubing because the tube wall can vary in thickness. Each AN size also uses its own standard thread size.
AN fittings are a flare fitting, using 37° flared tubing to form a metal-metal seal. They are similar to other 37° flared fittings, such as JIC, which is their industrial variant. The two are interchangeable in theory, though this is typically not recommended due to the exacting specifications and demands of the aerospace industry. The differences between them relate to thread class and shape (how tight a fit the threads are), and the metals used.
Note that AN threads are different for bolts and fittings. In bolts the number refers to the diameter of the bolt whereas in a fitting it refers to the OD of the tube and thereby have different threads. For example, AN6 bolt has a -24 thread whereas an AN6 fitting has a -18 thread.
Note that 37° AN and 45° SAE fittings and tooling are not interchangeable due to the different flaring angles. Mixing them can cause leakage at the flare.
Originally parts were made compliant to the specification MIL-F-5509, but they are now controlled under SAE AS (Aerospace Standards) specifications AS4841 through AS4843 and AS4875.