#1E90FF on #1F1F1F: 5.09:1

#1E90FF on #1F1F1F: contrast ratio 5.09:1 and APCA Lc -41. WCAG 2.2 AA and AAA results for normal text, large text and UI, plus the nearest accessible text or background color via OKLCH lightness.

Preview

Large heading sample

The quick brown fox jumps over the lazy dog

#1E90FF on #1F1F1F

Swap text and background →

WCAG 2.2 contrast ratio: 5.09:1

WCAG 2.2 uses the same contrast formula as 2.1. Ratios are floored to two decimals, never rounded up.

Text typeAAAAA
Normal text✓ Pass✗ Fail
Large text (24px+, or 18.66px+ bold)✓ Pass✓ Pass
UI components and graphics✓ Passn/a

APCA lightness contrast: Lc -41

Lc -41. Body text needs about Lc 75+, large text and UI about Lc 45+. Positive means dark text on a light background, negative means light text on dark.

Fixes via OKLCH lightness

The fix keeps hue and chroma and moves only OKLCH lightness to the nearest step that reaches the target for normal text, so it still looks like the same color. It is the same logic as the Fix button in the studio.

Fix the text color

  • Already passes AA, no change needed.
  • AAA: #4EB7FF → 7.48:1

    oklch(0.772 0.190 253.2) · ΔL +0.12 · clipped into sRGB

    #4EB7FF on #1F1F1F →

Fix the background

  • Already passes AA, no change needed.
  • No lightness of this color reaches AAA against the other color. Change hue or chroma, or pick another color.

#1E90FF = oklch(0.652 0.190 253.2) · #1F1F1F = oklch(0.239 0.000 0.0)

Open this pair in the Contrast tool

Guides: WCAG 2.2 vs APCA · How to fix colour contrast