How the formats relate
HEX is RGB written in base 16: #1E90FF means red 0x1E = 30, green 0x90 = 144 and blue 0xFF = 255. HSL and HSV describe the same sRGB color by hue (0–360°), saturation and lightness or value, using the formulas in CSS Color Level 4.
For #1E90FF the largest channel is blue, so hue = 60 × ((R − G) ÷ (max − min) + 4) = 60 × ((30 − 144) ÷ 225 + 4) = 209.6°. Lightness is (max + min) ÷ 2 = 55.9%, giving hsl(209.6, 100%, 55.9%) and hsv(209.6, 88.2%, 100%).
CMYK is an approximation
The CMYK shown uses the simple formula K = 1 − max(R′, G′, B′) and C = (1 − R′ − K) ÷ (1 − K), with M and Y the same way, which gives cmyk(88.2%, 43.5%, 0%, 0%) for #1E90FF. Real print values depend on the printer's ICC color profile, inks and paper, so use your print shop's profile for final artwork.
WCAG contrast ratio
WCAG 2.2 defines relative luminance by linearizing each sRGB channel (c ≤ 0.04045 ? c ÷ 12.92 : ((c + 0.055) ÷ 1.055)^2.4) and weighting them L = 0.2126 R + 0.7152 G + 0.0722 B. Contrast is (L_lighter + 0.05) ÷ (L_darker + 0.05), from 1:1 up to 21:1 for black on white.
#1E90FF has L = 0.2744, so it reaches 3.24:1 with white text (large text only at AA) and 6.49:1 with black text.
To test your own pair, set Contrast check to your own text color and enter it as HEX or rgb(). The color entered above is treated as the background. Dark navy #1A2B3C text on #1E90FF, for example, has L = 0.0227 and gives (0.2744 + 0.05) ÷ (0.0227 + 0.05) ≈ 4.46:1: it passes AA for large text but fails AA for normal text. The ratio is compared without rounding, so 4.49:1 does not count as 4.5:1.
| Level | Normal text | Large text |
|---|---|---|
| AA | 4.5:1 | 3:1 |
| AAA | 7:1 | 4.5:1 |