On this page
I’m Calder, a brand and UI designer, and this page goes past the codes. The strip above gives you copy-ready HEX, RGB and HSL values. Below you’ll find CMYK and Pantone references, what each color means, the story of the blue, contrast ratios I calculated myself, CSS, print advice and four ready palettes.
The four official Philippines flag colors in every format
The flag is a blue band over a red band with a white equilateral triangle at the hoist. Inside the triangle sit a golden-yellow sun with eight rays and three five-pointed stars. That is four colors, and the blue and red carry most of the weight.
Here is everything in one table, so you can grab the format your project needs.
| Color | HEX | RGB | HSL | CMYK |
|---|---|---|---|---|
| Blue | 0, 56, 168 | 220°, 100%, 33% | 100, 67, 0, 34 | |
| Red | 206, 17, 38 | 353°, 85%, 44% | 0, 92, 82, 19 | |
| White | 255, 255, 255 | 0°, 0%, 100% | 0, 0, 0, 0 | |
| Yellow | 252, 209, 22 | 49°, 97%, 54% | 0, 17, 91, 1 |
HSL and CMYK here are straight mathematical conversions of the hex values. Treat CMYK as a starting point rather than a press recipe, because paper and printer profiles change the result. The blue is the tricky one: it is fully saturated, and a plain four-color print usually looks a little duller than the screen.
Cable numbers and Pantone: what the law really specifies
The colors are not defined by hex at all. Republic Act No. 8491, the Flag and Heraldic Code signed by President Fidel V. Ramos on February 12, 1998, describes the flag as blue, white and red with an eight-rayed golden-yellow sun and three five-pointed stars. It also fixes the proportions: width 1, length 2, and each side of the white triangle equal to 1.
What should you give a printer to match the flag blue?
Hex is a screen value, while the law and print shops work from Cable Numbers and Pantone swatches.
For the shades, the law uses Cable Numbers from the system developed by the Color Association of the United States: blue 80173, white 80001, red 80108 and golden yellow 80068. Pantone equivalents are commonly given as 286 C for the blue, 193 C for the red and 122 C for the gold, although some references list 186 C for the red. That is why is best described as a faithful screen approximation. For a physical flag or a printed logo, quote the Cable Numbers or Pantone codes and ask for a swatch.

What the blue, red, white and yellow stand for
These are the meanings most commonly cited for each element:
- Blue: peace, truth and justice.
- Red: patriotism and valor.
- White: equality and fraternity, shown in the triangle at the hoist.
- Yellow sun: its eight rays stand for the eight provinces that first rose against Spanish colonial rule.
- Yellow stars: Luzon, Visayas and Mindanao, the three major island groups.
Older descriptions read the blue as willingness to sacrifice for freedom and the red as courage. Both readings are in circulation, so if you write copy about the flag, pick one and keep it consistent.
A short history of the flag and its shifting blue
The flag was first unfurled on May 28, 1898, after the Battle of Alapan, and independence was proclaimed on June 12, 1898. The original blue was described in Spanish as azul oscuro, or dark blue. Under American rule the flag was outlawed between 1907 and 1920, the Commonwealth adopted the pattern in 1936, and the United States granted independence on July 4, 1946.
After that, the blue drifted. A lighter blue was used from 1985 to 1986, and a dark navy returned until 1997. On September 16, 1997, ahead of the centennial, the top stripe changed from dark navy to a lighter royal blue, and RA 8491 confirmed royal blue in 1998. So an older photo showing a navy field is not wrong, just from a different era.
Blue on top or red on top: what the order signals
In peacetime the blue field goes on top. In time of war the law puts the red field on top. When the flag hangs vertically, the blue sits to the observer’s left in peace and the red takes that side in war.
History gives this real weight. During the Japanese occupation, Filipinos opposed to the occupation displayed the flag with the red stripe up. For designers the lesson is practical: don’t flip the stripes for decoration on anything official or commemorative, because a flipped flag reads as a message.
How to tell the flag blue and red from look-alikes
Plenty of flags use a strong blue and red, and they are easy to mix up. The US flag is commonly listed with a blue of and a red of , both darker and cooler than the Philippine pair. Cuba’s flag, which one theory says influenced the Philippine design, is usually given as and , a deeper blue with a slightly pinker red.
Hue 220°, saturation 100%, lightness 33%. If a "royal blue" looks greyer or lighter than that, it is not the flag's blue.
The CSS keyword royalblue is , which is lighter and softer, and navy is , which is far darker. For another flag built on a hot yellow against a deep blue, compare the Brazil flag colors, where the blue sits much darker than here.
Contrast and WCAG: which flag color pairs are readable
I calculated WCAG 2 contrast ratios from the hex codes. Normal text needs 4.5:1 for AA and 7:1 for AAA, and large text needs 3:1 for AA. Here is how the pairs fall:
- White on blue: 9.9:1, passes AA and AAA.
- White on red: 5.6:1, passes AA for normal text, misses AAA.
- Yellow on blue: 6.7:1, passes AA, just under AAA.
- on yellow: 8.6:1, passes AAA.
- Yellow on red: 3.8:1, large text only.
- White on yellow: 1.5:1, fails.
- Red on blue: 1.8:1, fails.
The failures matter more than the passes. I once fixed a donation page where a yellow button carried a white label, a pairing that measures 1.5:1. Switching the label to dark gray lifted it to 8.6:1 and the button kept its look. The same trap catches red type on a blue band, which vibrates as well as failing.
Which pairing is the best choice for small body text?
White on the flag blue measures about 9.9:1, while the other two pairs fall well short of the 4.5:1 minimum.
Using the colors in web and UI design, with CSS
Treat the blue as the primary brand color and the yellow as the accent, with white and a dark neutral doing the reading work. Use red sparingly. If red is also your error color, users will confuse brand with warning, so pair error states with an icon and a message. Here is a small token set to start from:

:root {
--ph-blue: #0038A8;
--ph-red: #CE1126;
--ph-white: #FFFFFF;
--ph-yellow: #FCD116;
--ph-ink: #333333;
}
.flag-banner {
background: linear-gradient(to bottom, var(--ph-blue) 50%, var(--ph-red) 50%);
color: var(--ph-white);
}
.btn-sun { background: var(--ph-yellow); color: var(--ph-ink); }
Yellow is the hard one on white backgrounds. For yellow text or icons on light surfaces, move to a deeper gold such as those on the dark yellow page, and use #333333 as the text color on yellow fills. For a sun-style glow behind a hero, a soft yellow gradient feels warmer than flat .
Try this: Place as a button fill with white text, then switch the text to . Run both versions through a contrast checker and compare 1.5:1 with 8.6:1.
Print, fabric and interiors: getting the shades right
For print, ask for Pantone 286 C and 193 C as spot colors where the budget allows. They avoid the dull result that CMYK gives for saturated blues. On one poster job, the CMYK proof of came back noticeably flatter than my screen, and the fix was a spot ink for the blue only. Always approve a proof, and on uncoated paper expect both blue and red to sit a little darker.
At home and in fashion, the flag palette works best with proportion. Use the royal blue as a large anchor, white as breathing room and the yellow and red as small accents. For a softer interior, pair the blue with sand tones from the beach color palettes, or go deeper with the night sky palette. In art, a cobalt or ultramarine mixed toward a touch of white reaches the blue, and a cadmium-style red and yellow cover the rest.
Four ready-to-use palettes built from the flag
The first palette below is the flag itself with a dark neutral for text. The others stretch the colors into tints and shades so they work in interfaces, stationery and packaging. Copy any hex code straight from the swatches, and keep the pure flag colors for the moments that need to say Philippines.
Patriotic posters, event branding and social graphics that need the full flag.
Calm website headers, dashboards and stationery built on the flag blue.
Warm, light packaging, menus and wedding stationery with a golden accent.
Bold event invitations, festival banners and merchandise on a dark base.
The official colors and what they stand for
Philippines Flag Colors: questions people ask
What are the hex codes of the Philippines flag colors?
Blue is #0038A8, red is #CE1126, white is #FFFFFF and golden yellow is #FCD116. These are screen approximations of the shades the national flag code defines by Cable Number.
What do the colors of the Philippine flag mean?
Blue is commonly read as peace, truth and justice, and red as patriotism and valor. White stands for equality and fraternity, the three stars for Luzon, Visayas and Mindanao, and the sun's eight rays for the eight provinces that first revolted against Spain.
Is the Philippine flag blue navy or royal blue?
Royal blue. A navy shade was used in earlier decades, but in 1997 the top stripe changed to a lighter royal blue, and Republic Act No. 8491 confirmed it in 1998.
Why is the red stripe on top in wartime?
Republic Act No. 8491 says the flag flies with the blue field on top in peace and the red field on top in war. Filipinos also displayed the flag with red up in defiance during the Japanese occupation.
What are the Pantone colors of the Philippines flag?
Pantone equivalents are commonly given as 286 C for blue, 193 C for red and 122 C for the golden yellow. Some references list 186 C for the red, so the safest route for print is to use the legal Cable Numbers and approve a physical swatch.
Keep exploring
- New York Knicks Colors: Hex Codes, RGB and Team Palette
- Trans Flag Colors: Hex Codes, RGB and Meaning of the Pride Flag
- New England Patriots Colors: Hex Codes, RGB and Team Palette
- Bisexual Flag Colors: Hex Codes and RGB Values
- Philadelphia Eagles Colors: Hex Codes, RGB and Team Palette
- Green Bay Packers Colors: Hex Codes, RGB and Team Palette
- Honey Blonde Color: Hex Code, RGB and Palettes
- Light Green Color: Hex Code, RGB and Palettes