Primary blue to HSL — Color Code

#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 HSL code for primary blue?

The CSS color primary blue in HSL format is hsl(241, 96.8%, 49.6%). 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: hsl(241, 96.8%, 49.6%);
  • Background: background-color: hsl(241, 96.8%, 49.6%);
  • Border: border-color: hsl(241, 96.8%, 49.6%);

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 HSL?

Select primary blue from the color name list in our color converter. The HSL value — hsl(241, 96.8%, 49.6%) — 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 HSL used for?

HSL describes colors by hue (0–360°), saturation (0–100%) and lightness (0–100%). It is more intuitive for designers — easy to create lighter, darker or less saturated variants of any color.