MidnightBlue and Olive
Complementary color combination with 3.54:1 contrast ratio
Color Values
#19197025, 25, 112240, 64%, 27%#808010128, 128, 1660, 78%, 28%Harmony: Complementary
These colors sit opposite each other on the wheel, producing maximum visual contrast. Complementary pairings are vibrant and attention-grabbing, but a 70/30 split keeps them from shouting.
The hue angle between MidnightBlue and Olive is 180 degrees. You can explore these relationships interactively in our Color Wheel Tool.
WCAG Contrast
UI Preview
MidnightBlue surface
Sample text on a midnightblue background demonstrates readability and visual hierarchy.
Olive surface
Sample text on a olive background demonstrates readability and visual hierarchy.
Design Tokens
CSS Variables
:root {
--color-a: #191970;
--color-b: #808010;
--color-a-rgb: 25, 25, 112;
--color-b-rgb: 128, 128, 16;
}JSON
{
"name": "MidnightBlue and Olive",
"colors": [
{
"name": "MidnightBlue",
"hex": "#191970",
"rgb": [
25,
25,
112
]
},
{
"name": "Olive",
"hex": "#808010",
"rgb": [
128,
128,
16
]
}
],
"harmony": "Complementary",
"contrastRatio": 3.54
}Related Combinations
Explore These Colors
Frequently Asked Questions
Do midnightblue and olive go together?
Yes. MidnightBlue and Olive form a complementary color combination. These colors sit opposite each other on the wheel, producing maximum visual contrast. Complementary pairings are vibrant and attention-grabbing, but a 70/30 split keeps them from shouting. The pairing has a WCAG contrast ratio of 3.54:1, which passes AA for large text but not for body text.
What is the contrast ratio between midnightblue and olive?
The WCAG 2.1 contrast ratio between MidnightBlue (#191970) and Olive (#808010) is 3.54:1. This passes AA for large text (18pt+ or 14pt+ bold) but not for normal-sized body text.
How do I use midnightblue and olive in design?
A safe starting point is the 60/30/10 rule: give one color about 60 percent of the surface area, the other about 30 percent, and reserve the remaining 10 percent for an accent or neutral. Since these are complementary colors, lean toward a 70/25/5 split to keep the contrast from becoming overwhelming. Test the result with our Contrast Checker if text is involved.
What are the hex and RGB values for midnightblue and olive?
MidnightBlue has the hex code #191970 and RGB values rgb(25, 25, 112). Olive has the hex code #808010 and RGB values rgb(128, 128, 16). You can copy these directly into CSS or use the design tokens provided on this page.