#5B7BEB
Closest named color: Cornflower (#6A79F7). oklch(61.5% 0.172 268.9), rgb(91, 123, 235).
Aa
Black text reads best on this color (5.47:1).
About this color
#5B7BEB is a medium-dark, vivid blue. In OKLCH its lightness is 62%, 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.026 away. Black text reads best on it, at 5.47:1.
| Hue family | Blues |
| Lightness | medium-dark (62%) |
| Chroma | vivid (0.172) |
| Temperature | cool |
| Nearest name | Cornflower (#6A79F7) |
| Black text | 5.47:1 |
| White text | 3.83:1 |
Values
| HEX | #5B7BEB |
| RGB | rgb(91, 123, 235) |
| HSL | hsl(227, 78%, 64%) |
| OKLCH | oklch(61.5% 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 #5B7BEB | 3.83:1 | AA large text | Lc -71.0 | Content text, not long reading |
| Black text on #5B7BEB | 5.47:1 | AA | Lc 38.5 | Non-text elements, placeholder text |
| #5B7BEB text on white | 3.83:1 | AA large text | Lc 65.5 | Content text, not long reading |
| #5B7BEB text on black | 5.47:1 | AA | Lc -36.1 | 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)
#5B7BEB
oklch(61.5% 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
#2A3B7C
oklch(37.6% 0.112 269.4)
-
Step 950
950
#182349
oklch(26.9% 0.072 269)
#5B7BEB 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) | #4289EF | 0.039 |
| Deuteranopia (no green cones) | #267CE9 | 0.044 |
| Tritanopia (no blue cones) | #0095A8 | 0.147 |
| Achromatopsia (no color) | #828282 | 0.172 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #5B7BEB
#5B7BEB
oklch(61.5% 0.172 268.9)
- #A38000
#A38000
oklch(61.6% 0.126 89.4)
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 #5B7BEB, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Cornflower #6A79F7 ΔE 0.026
- Soft Blue #6488EA ΔE 0.037
- Clear Blue #247AFD ΔE 0.051
- Dark Sky Blue #448EE4 ΔE 0.054
- Medium Slate Blue #7B68EE ΔE 0.058
- Royal Blue #4169E1 ΔE 0.058
- Dodger Blue #1E90FF ΔE 0.064
- Chefchaouen Blue #4895EF ΔE 0.066
Use #5B7BEB 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.