#5A7AEA
Closest named color: Cornflower (#6A79F7). oklch(61.2% 0.172 268.9), rgb(90, 122, 234).
Aa
Black text reads best on this color (5.40:1).
About this color
#5A7AEA is a medium-dark, vivid blue. In OKLCH its lightness is 61%, its chroma 0.172 and its hue 269°. Its hue sits on the cool side of the wheel. The nearest named color is Cornflower (#6A79F7), ΔE 0.028 away. Black text reads best on it, at 5.40:1.
| Hue family | Blues |
| Lightness | medium-dark (61%) |
| Chroma | vivid (0.172) |
| Temperature | cool |
| Nearest name | Cornflower (#6A79F7) |
| Black text | 5.40:1 |
| White text | 3.88:1 |
Values
| HEX | #5A7AEA |
| RGB | rgb(90, 122, 234) |
| HSL | hsl(227, 77%, 64%) |
| OKLCH | oklch(61.2% 0.172 268.9) |
Contrast
WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #5A7AEA | 3.88:1 | AA large text | Lc -71.5 | Content text, not long reading |
| Black text on #5A7AEA | 5.40:1 | AA | Lc 38.1 | Non-text elements, placeholder text |
| #5A7AEA text on white | 3.88:1 | AA large text | Lc 66.0 | Content text, not long reading |
| #5A7AEA text on black | 5.40:1 | AA | Lc -35.7 | Non-text elements, placeholder text |
Tints and shades
A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 500.
-
Step 50
50
#F2F5FD
oklch(97% 0.011 269.6)
-
Step 100
100
#E3EAFB
oklch(93.7% 0.024 267.9)
-
Step 200
200
#CCD9F9
oklch(88.6% 0.046 267.9)
-
Step 300
300
#AABFF8
oklch(80.9% 0.084 268.8)
-
Step 400
400
#7E9CF5
oklch(70.8% 0.135 268.7)
-
Step 500
500 (this color)
#5A7AEA
oklch(61.2% 0.172 268.9)
-
Step 600
600
#4866DF
oklch(55.6% 0.187 269)
-
Step 700
700
#3A54C2
oklch(49.2% 0.174 269)
-
Step 800
800
#30459D
oklch(42.7% 0.145 269.2)
-
Step 900
900
#293B7C
oklch(37.5% 0.112 268.8)
-
Step 950
950
#182349
oklch(26.9% 0.072 269)
#5A7AEA with color blindness
Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #4088EE | 0.039 |
| Deuteranopia (no green cones) | #247BE8 | 0.044 |
| Tritanopia (no blue cones) | #0094A7 | 0.147 |
| Achromatopsia (no color) | #818181 | 0.173 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #5A7AEA
#5A7AEA
oklch(61.2% 0.172 268.9)
- #A27F00
#A27F00
oklch(61.3% 0.125 89.2)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #5A7AEA, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Cornflower #6A79F7 ΔE 0.028
- Soft Blue #6488EA ΔE 0.040
- Clear Blue #247AFD ΔE 0.051
- Royal Blue #4169E1 ΔE 0.055
- Dark Sky Blue #448EE4 ΔE 0.055
- Medium Slate Blue #7B68EE ΔE 0.058
- Dodger Blue #1E90FF ΔE 0.066
- Chefchaouen Blue #4895EF ΔE 0.069
Use #5A7AEA in your product
Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.