CSS named color
Azure #F0FFFF
Azure (CSS keyword azure) has the hex code #F0FFFF and the RGB value rgb(240, 255, 255): an off-white with a cyan tint.
In heraldry and on the color wheel azure is a strong sky blue, but the CSS keyword is a near-white with only a trace of cyan. Expect #f0ffff, not a saturated blue.
Color codes for Azure
| CSS keyword | azure |
|---|---|
| HEX | #F0FFFF |
| RGB | rgb(240, 255, 255) |
| HSL | hsl(180, 100%, 97%) |
| HWB | hwb(180 94% 0%) |
| OKLCH | oklch(98.9% 0.016 196.9) |
| CMYK (naive, no ICC profile) | cmyk(6%, 0%, 0%, 0%) |
| Decimal | 15,794,175 |
| Hue family | Whites and off-whites |
Contrast and accessibility
On azure, black text has a contrast ratio of 20.45:1 and passes AAA at any text size; white text reaches 1.02:1.
WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on azure | 20.45:1 | Pass | Pass | Pass | Pass | 104.2 |
| White text on azure | 1.02:1 | Fail | Fail | Fail | Fail | 0.0 |
| Azure text on white | 1.02:1 | Fail | Fail | Fail | Fail | 0.0 |
| Azure text on black | 20.45:1 | Pass | Pass | Pass | Pass | −105.8 |
Tints and shades
Each step mixes azure with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, azure, white 25%) in CSS.
Tints (mixed with white)
- 5%
#f1ffff - 15%
#f2ffff - 25%
#f4ffff - 35%
#f5ffff - 45%
#f7ffff - 55%
#f8ffff - 65%
#faffff - 75%
#fbffff - 85%
#fdffff - 95%
#feffff
Shades (mixed with black)
- 5%
#e4f2f2 - 15%
#ccd9d9 - 25%
#b4bfbf - 35%
#9ca6a6 - 45%
#848c8c - 55%
#6c7373 - 65%
#545959 - 75%
#3c4040 - 85%
#242626 - 95%
#0c0d0d
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, azure's complementary color is #FFF7F8 (close to snow), its analogous colors are #F2FFF9 and #F1FEFF, and its triadic partners are #FFF8FF and #FFFAF0. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #fff7f8 |
| Analogous | −30°, +30° | #f2fff9#f1feff |
| Triadic | +120°, +240° | #fff8ff#fffaf0 |
| Split-complementary | +150°, +210° | #fff7fd#fff9f3 |
Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.
Warm or cool?
Azure is close to neutral: its OKLCH chroma is only 0.016, so its temperature comes from context. The faint 180° hue gives it a slightly cool cast.
Nearest named and Tailwind colors
Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.
Code snippets
.element {
color: azure;
background-color: #f0ffff;
border-color: rgb(240 255 255);
outline-color: oklch(98.9% 0.016 196.9);
}<div class="bg-[#f0ffff] text-black">...</div>
/* or register it once in your CSS (Tailwind v4) */
@theme {
--color-azure: #f0ffff;
}
/* then use bg-azure, text-azure, border-azure */import SwiftUI
extension Color {
static let azure = Color(red: 0.941, green: 1.000, blue: 1.000)
}import androidx.compose.ui.graphics.Color
val Azure = Color(0xFFF0FFFF)import 'package:flutter/material.dart';
const azure = Color(0xFFF0FFFF);<!-- res/values/colors.xml -->
<color name="azure">#F0FFFF</color>Frequently asked questions
- What is the hex code for azure?
- The hex code for azure is #F0FFFF. The same color is rgb(240, 255, 255), hsl(180, 100%, 97%) and oklch(98.9% 0.016 196.9), and in CSS you can also write the keyword azure directly.
- Is azure a warm or cool color?
- Azure is close to neutral: its OKLCH chroma is only 0.016, so its temperature comes from context. The faint 180° hue gives it a slightly cool cast.
- What colors go with azure?
- Rotating the hue in OKLCH while keeping lightness and chroma, azure's complementary color is #FFF7F8 (close to snow), its analogous colors are #F2FFF9 and #F1FEFF, and its triadic partners are #FFF8FF and #FFFAF0. For text on top, black gives the higher contrast.
- Can you use white text on azure?
- White text on azure has a contrast ratio of 1.02:1, which fails AA even for large text under WCAG 2.2. Black text reaches 20.45:1 and passes both AA and AAA. In APCA terms that is Lc 0.0 for white and Lc 104.2 for black.
- What is the RGB value of azure?
- Azure is rgb(240, 255, 255): red 240, green 255 and blue 255 on the 0 to 255 scale, or 94.1%, 100.0% and 100.0%. As a decimal integer it is 15794175.
Last reviewed by Arielton Oberek.