Gray and RoyalBlue
Tonal Accent color combination with 1.23:1 contrast ratio
Color Values
#808080128, 128, 1280, 0%, 50%#4169E165, 105, 225225, 73%, 57%Harmony: Tonal Accent
One color is neutral and the other carries the chroma, which is a reliable formula for balanced design. The neutral gives the eye somewhere to rest while the chromatic color provides the focal point.
The hue angle between Gray and RoyalBlue is 135 degrees (though one or both colors are achromatic, so hue angle is less relevant than lightness contrast). You can explore these relationships interactively in our Color Wheel Tool.
WCAG Contrast
UI Preview
Gray surface
Sample text on a gray background demonstrates readability and visual hierarchy.
RoyalBlue surface
Sample text on a royalblue background demonstrates readability and visual hierarchy.
Design Tokens
CSS Variables
:root {
--color-a: #808080;
--color-b: #4169E1;
--color-a-rgb: 128, 128, 128;
--color-b-rgb: 65, 105, 225;
}JSON
{
"name": "Gray and RoyalBlue",
"colors": [
{
"name": "Gray",
"hex": "#808080",
"rgb": [
128,
128,
128
]
},
{
"name": "RoyalBlue",
"hex": "#4169E1",
"rgb": [
65,
105,
225
]
}
],
"harmony": "Tonal Accent",
"contrastRatio": 1.23
}Related Combinations
Frequently Asked Questions
Do gray and royalblue go together?
Yes. Gray and RoyalBlue form a tonal accent color combination. One color is neutral and the other carries the chroma, which is a reliable formula for balanced design. The neutral gives the eye somewhere to rest while the chromatic color provides the focal point. The pairing has a WCAG contrast ratio of 1.23:1, which is below the AA threshold for text — use it for decorative purposes rather than text readability.
What is the contrast ratio between gray and royalblue?
The WCAG 2.1 contrast ratio between Gray (#808080) and RoyalBlue (#4169E1) is 1.23:1. This ratio is below AA. Use the pairing for backgrounds, borders, and decorative elements rather than text-on-background combinations.
How do I use gray and royalblue 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. If one color is significantly darker, use it for text or structural elements and the lighter one for backgrounds. Test the result with our Contrast Checker if text is involved.
What are the hex and RGB values for gray and royalblue?
Gray has the hex code #808080 and RGB values rgb(128, 128, 128). RoyalBlue has the hex code #4169E1 and RGB values rgb(65, 105, 225). You can copy these directly into CSS or use the design tokens provided on this page.