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 familyBlues
Lightnessdark (45%)
Chromavivid (0.306)
Temperaturecool
Nearest namePrimary Blue
Black text2.39:1
White text8.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.

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.

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.

What colors make blue? | Color mixing chart

Codes for Primary Blue in every format

HEX#0804F9
RGBrgb(8, 4, 249)
HSLhsl(241, 97%, 50%)
OKLCHoklch(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.

PairWCAG 2ResultAPCAAPCA 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.

  1. Step 50

    50

    #F1F6FF

    oklch(97.2% 0.013 262.4)

  2. Step 100

    100

    #E0EAFF

    oklch(93.6% 0.03 265.3)

  3. Step 200

    200

    #C7D9FF

    oklch(88.4% 0.056 265.2)

  4. Step 300

    300

    #A2C0FF

    oklch(80.9% 0.096 264.7)

  5. Step 400

    400

    #719DFF

    oklch(70.8% 0.152 264.6)

  6. Step 500

    500

    #4C80FF

    oklch(63.2% 0.197 264.6)

  7. Step 600

    600

    #275FFF

    oklch(55.7% 0.244 264.5)

  8. Step 700

    700

    #0B37FF

    oklch(49.1% 0.287 264.7)

  9. Step 800

    800 (this color)

    #0804F9

    oklch(44.6% 0.306 264.6)

  10. Step 900

    900

    #0419BD

    oklch(37.7% 0.239 264.7)

  11. Step 950

    950

    #02156E

    oklch(26.9% 0.151 264.6)

Export this scale for Tailwind in the Tailwind colors tool

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.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#0057FF0.103
Deuteranopia (no green cones)#003DF60.052
Tritanopia (no blue cones)#0069920.227
Achromatopsia (no color)#4B4B4B0.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.