Skip to content

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.

Azure#F0FFFF

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

Color codes for Azure
CSS keywordazure
HEX#F0FFFF
RGBrgb(240, 255, 255)
HSLhsl(180, 100%, 97%)
HWBhwb(180 94% 0%)
OKLCHoklch(98.9% 0.016 196.9)
CMYK (naive, no ICC profile)cmyk(6%, 0%, 0%, 0%)
Decimal15,794,175
Hue familyWhites 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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on azure20.45:1PassPassPassPass104.2
White text on azure1.02:1FailFailFailFail0.0
Azure text on white1.02:1FailFailFailFail0.0
Azure text on black20.45:1PassPassPassPass−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)

  1. 5%
    #f1ffff
  2. 15%
    #f2ffff
  3. 25%
    #f4ffff
  4. 35%
    #f5ffff
  5. 45%
    #f7ffff
  6. 55%
    #f8ffff
  7. 65%
    #faffff
  8. 75%
    #fbffff
  9. 85%
    #fdffff
  10. 95%
    #feffff

Shades (mixed with black)

  1. 5%
    #e4f2f2
  2. 15%
    #ccd9d9
  3. 25%
    #b4bfbf
  4. 35%
    #9ca6a6
  5. 45%
    #848c8c
  6. 55%
    #6c7373
  7. 65%
    #545959
  8. 75%
    #3c4040
  9. 85%
    #242626
  10. 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.

Color harmonies
HarmonyRotationColor
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.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
mintcream#f5fffa0.9
aliceblue#f0f8ff1.8
white#ffffff1.9

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
cyan-50#ecfeff0.6
teal-50#f0fdfa0.7
mist-50#f9fbfb1.4

Code snippets

CSS
.element {
  color: azure;
  background-color: #f0ffff;
  border-color: rgb(240 255 255);
  outline-color: oklch(98.9% 0.016 196.9);
}
Tailwind CSS
<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 */
SwiftUI
import SwiftUI

extension Color {
  static let azure = Color(red: 0.941, green: 1.000, blue: 1.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Azure = Color(0xFFF0FFFF)
Flutter
import 'package:flutter/material.dart';

const azure = Color(0xFFF0FFFF);
Android XML
<!-- 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.