Primary blue Color — HEX, RGB, HSL & CMYK Codes

#0804f9
Format Value
HEX #0804f9
RGB rgb(8, 4, 249)
HSL hsl(241, 96.8%, 49.6%)
CMYK cmyk(96.8%, 98.4%, 0%, 2.4%)
HSV hsv(241, 98.4%, 97.6%)

primary blue color harmonies

Tints & shades of primary blue

Tints (lighter)

#1e1bfa #3532fa #4b48fb #625ffb #7876fc #8f8dfc #a5a4fd #bcbbfd #d2d1fe #e9e8fe

Shades (darker)

#0704e2 #0703cc #0603b5 #05039e #040288 #040271 #03015b #020144 #01012d #010017

Contrast & accessibility

The quick brown fox

On white · 8.77:1 · AAA

The quick brown fox

On black · 2.4:1 · Fail

Recommended text color: #ffffff

Use primary blue in code

CSS color: #0804f9;
SCSS $color: #0804f9;
Tailwind bg-[#0804f9]
Swift UIColor(red: 0.031, green: 0.016, blue: 0.976, alpha: 1)
Android Color.parseColor("#0804f9")
Flutter Color(0xFF0804F9)

Colors similar to primary blue

Browse all Blue colors →

What is the HEX code for primary blue?

The CSS color primary blue in HEX format is #0804f9. Use this value directly in CSS, SVG, and most design tools.

How do I use primary blue in CSS?

To apply primary blue in CSS:

  • Text color: color: #0804f9;
  • Background: background-color: #0804f9;
  • Border: border-color: #0804f9;

What are all the color format values for primary blue?

FormatValue
HEX#0804f9
RGBrgb(8, 4, 249)
HSLhsl(241, 96.8%, 49.6%)
CMYKcmyk(96.8%, 98.4%, 0%, 2.4%)

How do I convert primary blue to HEX?

Select primary blue from the color name list in our color converter. The HEX value — #0804f9 — appears instantly alongside HEX, RGB, HSL and CMYK.

What color family does primary blue belong to?

primary blue belongs to the blue color family. It is a medium, vivid color with HSL values: hue 241°, saturation 96.8%, lightness 49.6%.

How do I create lighter and darker shades of primary blue?

Lighter variant (lightness 64.6%): #504dfc. Darker variant (lightness 34.6%): #0603ae. These values are computed by adjusting HSL lightness ±15% while keeping the same hue and saturation.

What is HEX used for?

HEX color codes are used in CSS, HTML and design tools. They encode red, green and blue as two hexadecimal digits each (00–FF), forming a compact 6-character code like #ff0000.