Blue to HSL

Color Code

#0000ff
Format Value
HEX #0000ff
RGB rgb(0, 0, 255)
HSL hsl(240, 100%, 50%)
CMYK cmyk(100%, 100%, 0%, 0%)
HSV hsv(240, 100%, 100%)

blue color harmonies

Tints & shades of blue

Tints (lighter)

#1717ff #2e2eff #4646ff #5d5dff #7474ff #8b8bff #a2a2ff #b9b9ff #d1d1ff #e8e8ff

Shades (darker)

#0000e8 #0000d1 #0000b9 #0000a2 #00008b #000074 #00005d #000046 #00002e #000017

Contrast & accessibility

The quick brown fox

On white · 8.59:1 · AAA

The quick brown fox

On black · 2.44:1 · Fail

Recommended text color: #ffffff

Use blue in code

CSS color: #0000ff;
SCSS $color: #0000ff;
Tailwind bg-[#0000ff]
Swift UIColor(red: 0.000, green: 0.000, blue: 1.000, alpha: 1)
Android Color.parseColor("#0000ff")
Flutter Color(0xFF0000FF)

Colors similar to blue

Browse all Blue colors →

What is the HSL code for blue?

The CSS color blue in HSL format is hsl(240, 100%, 50%). Use this value directly in CSS, SVG, and most design tools.

How do I use blue in CSS?

To apply blue in CSS:

  • Text color: color: hsl(240, 100%, 50%);
  • Background: background-color: hsl(240, 100%, 50%);
  • Border: border-color: hsl(240, 100%, 50%);

What are all the color format values for blue?

FormatValue
HEX#0000ff
RGBrgb(0, 0, 255)
HSLhsl(240, 100%, 50%)
CMYKcmyk(100%, 100%, 0%, 0%)

How do I convert blue to HSL?

Select blue from the color name list in our color converter. The HSL value — hsl(240, 100%, 50%) — appears instantly alongside HEX, RGB, HSL and CMYK.

What color family does blue belong to?

blue belongs to the blue color family. It is a medium, vivid color with HSL values: hue 240°, saturation 100%, lightness 50%.

How do I create lighter and darker shades of blue?

Lighter variant (lightness 65%): #4d4dff. Darker variant (lightness 35%): #0000b3. 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.