Primary Blue #0804F9
Primary Blue is a dark, vivid blue with hex code #0804F9 and RGB rgb(8, 4, 249).
Aa
White text reads best on this color (8.76:1).
About this color
#0804F9 is a dark, vivid blue. In OKLCH its lightness is 45%, its chroma 0.306 and its hue 265°. Its hue sits on the cool side of the wheel. It is the named color Primary Blue. White text reads best on it, at 8.76:1.
| Hue family | Blues |
| Lightness | dark (45%) |
| Chroma | vivid (0.306) |
| Temperature | cool |
| Nearest name | Primary Blue |
| Black text | 2.39:1 |
| White text | 8.76:1 |
Colors that go with Primary Blue
Matches found by rotating Primary Blue around the OKLCH hue wheel, each labelled with the closest name in our list.
Complementary
The opposite hue (180°).
Analogous
Neighbouring hues, 30° either side.
Triadic
Three hues spaced 120° apart.
Color palettes with Primary Blue
Curated color palettes that contain a color within ΔE 0.06 (OKLab) of Primary Blue, closest first.
No curated palette has a color within ΔE 0.06 of Primary Blue yet.
Similar named colors
The eight named colors closest to Primary Blue, with their ΔE distance.
- Strong Blue #0C06F7 ΔE 0.004
- Blue #0000FF ΔE 0.010
- Rich Blue #021BF9 ΔE 0.012
- Pure Blue #0203E2 ΔE 0.039
- Vivid Blue #152EFF ΔE 0.039
- Vibrant Blue #0339F8 ΔE 0.047
- Ultramarine Blue #1805DB ΔE 0.049
- Light Royal Blue #3A2EFE ΔE 0.064
More about Primary Blue
How to make Primary Blue
A starting recipe from common paint colors, found with a spectral paint model (the color mixer’s paint mode). Real pigments vary, so mix a small test batch and adjust.
- 1 part blue
Recipe result: #1F4FB3, a difference of ΔE 0.139 from Primary Blue. Primary Blue is more vivid than these paints can mix, so start from a ready-made blue paint and adjust it.
Codes for Primary Blue in every format
| HEX | #0804F9 |
| RGB | rgb(8, 4, 249) |
| HSL | hsl(241, 97%, 50%) |
| OKLCH | oklch(44.6% 0.306 264.6) |
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 #0804F9 | 8.76:1 | AAA | Lc -91.4 | Preferred for body text |
| Black text on #0804F9 | 2.39:1 | Fails | Lc 17.4 | Dividers and decoration only |
| #0804F9 text on white | 8.76:1 | AAA | Lc 86.6 | Fine for body text |
| #0804F9 text on black | 2.39:1 | Fails | Lc -15.5 | Dividers and decoration only |
Shades and tints of Primary Blue
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 800.
-
Step 50
50
#F1F6FF
oklch(97.2% 0.013 262.4)
-
Step 100
100
#E0EAFF
oklch(93.6% 0.03 265.3)
-
Step 200
200
#C7D9FF
oklch(88.4% 0.056 265.2)
-
Step 300
300
#A2C0FF
oklch(80.9% 0.096 264.7)
-
Step 400
400
#719DFF
oklch(70.8% 0.152 264.6)
-
Step 500
500
#4C80FF
oklch(63.2% 0.197 264.6)
-
Step 600
600
#275FFF
oklch(55.7% 0.244 264.5)
-
Step 700
700
#0B37FF
oklch(49.1% 0.287 264.7)
-
Step 800
800 (this color)
#0804F9
oklch(44.6% 0.306 264.6)
-
Step 900
900
#0419BD
oklch(37.7% 0.239 264.7)
-
Step 950
950
#02156E
oklch(26.9% 0.151 264.6)
Primary Blue 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) | #0057FF | 0.103 |
| Deuteranopia (no green cones) | #003DF6 | 0.052 |
| Tritanopia (no blue cones) | #006992 | 0.227 |
| Achromatopsia (no color) | #4B4B4B | 0.308 |
Use Primary Blue 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.