#2878DB
Closest named color: Royal Blue (#4169E1). oklch(57.8% 0.17 256.1), rgb(40, 120, 219).
Aa
Black text reads best on this color (4.79:1).
About this color
#2878DB is a medium-dark, vivid blue. In OKLCH its lightness is 58%, its chroma 0.170 and its hue 256°. Its hue sits on the cool side of the wheel. The nearest named color is Royal Blue (#4169E1), ΔE 0.041 away. Black text reads best on it, at 4.79:1.
| Hue family | Blues |
| Lightness | medium-dark (58%) |
| Chroma | vivid (0.170) |
| Temperature | cool |
| Nearest name | Royal Blue (#4169E1) |
| Black text | 4.79:1 |
| White text | 4.37:1 |
Values
| HEX | #2878DB |
| RGB | rgb(40, 120, 219) |
| HSL | hsl(213, 71%, 51%) |
| OKLCH | oklch(57.8% 0.17 256.1) |
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 #2878DB | 4.37:1 | AA large text | Lc -75.3 | Fine for body text |
| Black text on #2878DB | 4.79:1 | AA | Lc 34.3 | Non-text elements, placeholder text |
| #2878DB text on white | 4.37:1 | AA large text | Lc 69.8 | Content text, not long reading |
| #2878DB text on black | 4.79:1 | AA | Lc -31.8 | 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 600.
-
Step 50
50
#F1F6FC
oklch(97.1% 0.01 252.8)
-
Step 100
100
#E1EBF9
oklch(93.7% 0.022 256.7)
-
Step 200
200
#C7DBF6
oklch(88.5% 0.043 255.9)
-
Step 300
300
#A1C3F2
oklch(80.9% 0.076 256.6)
-
Step 400
400
#6CA3EC
oklch(70.8% 0.122 255.9)
-
Step 500
500
#4389E5
oklch(63% 0.156 256.3)
-
Step 600
600 (this color)
#2878DB
oklch(57.8% 0.17 256.1)
-
Step 700
700
#115EB7
oklch(49.1% 0.157 256.1)
-
Step 800
800
#134D94
oklch(42.6% 0.13 256.3)
-
Step 900
900
#184176
oklch(37.7% 0.101 256.3)
-
Step 950
950
#0F2645
oklch(26.9% 0.065 256.6)
#2878DB 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) | #4381DF | 0.034 |
| Deuteranopia (no green cones) | #1671D9 | 0.022 |
| Tritanopia (no blue cones) | #00909F | 0.129 |
| Achromatopsia (no color) | #797979 | 0.170 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #2878DB
#2878DB
oklch(57.8% 0.17 256.1)
- #A26E00
#A26E00
oklch(57.8% 0.121 76.1)
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 #2878DB, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Royal Blue #4169E1 ΔE 0.041
- Cerulean Blue #056EEE ΔE 0.043
- Windows Blue #3778BF ΔE 0.044
- Water Blue #0E87CC ΔE 0.050
- Clear Blue #247AFD ΔE 0.051
- Neon Blue #4361EE ΔE 0.066
- Dark Sky Blue #448EE4 ΔE 0.066
- Mid Blue #276AB3 ΔE 0.069
Use #2878DB 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.