Azure Hex Code #F0FFFF
Azure is a very light off-white with the hex code #F0FFFF. In RGB it is 240, 255, 255, and in HSL it is 180°, 100%, 97%. It is one of the 148 named colors in CSS, so you can write “azure” instead of the hex code.
- HEX
- #F0FFFF
- RGB
- rgb(240, 255, 255)
- HSL
- hsl(180, 100%, 97%)
- HSV
- hsv(180°, 6%, 100%)
- CMYK
- cmyk(6%, 0%, 0%, 0%)
- CSS name
- azure
CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.
About Azure
On a white background Azure has a contrast ratio of 1.03:1 (Fail), and on black 20.45:1 (AAA). Black text is the better choice on top of it.
It has almost no hue of its own, so it pairs comfortably with almost any accent color.
Near-white colors work well as backgrounds and surfaces. Their slight tint feels softer than pure white, which can look harsh across a large screen.
Good to know: CSS azure (#f0ffff) is a near-white with a faint cyan tint, not the vivid sky blue the word suggests. The more familiar azure of the color wheel is #007fff, which CSS does not name.
Shades and tints of Azure
Tints mix Azure with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.
Pairing Azure with an accent color
Azure has almost no hue of its own, so color schemes built from it would all look the same. A neutral works best as a background or text color beside an accent. This is how six accent colors contrast with Azure.
- Crimson #DC143C 4.86:1 against Azure (WCAG AA)
- Dark Orange #FF8C00 2.27:1 against Azure (WCAG Fail)
- Gold #FFD700 1.37:1 against Azure (WCAG Fail)
- Sea Green #2E8B57 4.13:1 against Azure (WCAG AA Large)
- Royal Blue #4169E1 4.72:1 against Azure (WCAG AA)
- Dark Orchid #9932CC 5.55:1 against Azure (WCAG AA)
Azure contrast and accessibility
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Azure scores against white and black.
| Against | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White (#ffffff) | 1.03:1 | ✕ Fail | ✕ Fail | ✕ Fail | ✕ Fail |
| Black (#000000) | 20.45:1 | ✓ Pass | ✓ Pass | ✓ Pass | ✓ Pass |
Azure and color blindness
These are approximate previews of how Azure can look with the main types of color vision deficiency.
Azure looks almost the same.
Azure looks almost the same.
Azure looks almost the same.
Azure looks almost the same.
Gradients with Azure
Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.
Azure to a lighter tint
background: linear-gradient(135deg, #f0ffff 0%, #f9ffff 100%); Azure to a darker shade
background: linear-gradient(135deg, #f0ffff 0%, #606666 100%); Azure to Dark Orchid
background: linear-gradient(135deg, #f0ffff 0%, #9932cc 100%); Colors similar to Azure
How each close match differs from Azure.
- Mint Cream #F5FFFA Very close in lightness, saturation and hue.
- Alice Blue #F0F8FF Very close in lightness, saturation and hue.
- White #FFFFFF Very close in lightness, saturation and hue.
- Light Cyan #E0FFFF Very close in lightness, saturation and hue.
- White Smoke #F5F5F5 Very close in lightness, saturation and hue.
- Ghost White #F8F8FF Very close in lightness, saturation and hue.
Use Azure in code
.element {
color: #f0ffff;
background-color: #f0ffff;
border-color: azure; /* azure is a valid CSS color name */
} :root {
--color-azure: #f0ffff;
} <!-- Tailwind arbitrary values -->
<div class="bg-[#f0ffff] text-[#f0ffff] border-[#f0ffff]"></div>
/* Tailwind v4 theme color */
@theme {
--color-azure: #f0ffff;
} Azure questions
What is the hex code for Azure?
The hex code for Azure is #F0FFFF. In RGB that is rgb(240, 255, 255), and in HSL it is hsl(180, 100%, 97%).
Which colors go well with Azure?
Azure is a neutral color with almost no hue of its own, so it has no true complement and pairs with nearly any accent. The accents that contrast most strongly against it are Dark Orchid (5.55:1), Crimson (4.86:1), Royal Blue (4.72:1).
Should I use white or black text on Azure?
Black text. It has a contrast ratio of 20.45:1 against Azure, which is WCAG AAA. The other option scores 1.03:1.
Is Azure accessible as a text color on white?
No. Azure on white scores 1.03:1, which is below the WCAG minimum of 3:1 even for large text.
What are darker and lighter shades of Azure?
Mixing Azure with black gives #C0CCCC, #909999, #606666, #303333 (20% to 80% black). Mixing it with white gives #F3FFFF, #F6FFFF, #F9FFFF, #FCFFFF (20% to 80% white).