Midnight to HSL — Color Code

HSL

hsl(242.7, 95.7%, 9%)

Format Value
HEX #03012d
RGB rgb(3, 1, 45)
HSL hsl(242.7, 95.7%, 9%)
CMYK cmyk(93.3%, 97.8%, 0%, 82.4%)

What is the HSL code for midnight?

The CSS color midnight in HSL format is hsl(242.7, 95.7%, 9%). Use this value directly in CSS, SVG, and most design tools.

How do I use midnight in CSS?

To apply midnight in CSS:

  • Text color: color: hsl(242.7, 95.7%, 9%);
  • Background: background-color: hsl(242.7, 95.7%, 9%);
  • Border: border-color: hsl(242.7, 95.7%, 9%);

What are all the color format values for midnight?

FormatValue
HEX#03012d
RGBrgb(3, 1, 45)
HSLhsl(242.7, 95.7%, 9%)
CMYKcmyk(93.3%, 97.8%, 0%, 82.4%)

How do I convert midnight to HSL?

Select midnight from the color name list in our color converter. The HSL value — hsl(242.7, 95.7%, 9%) — appears instantly alongside HEX, RGB, HSL and CMYK.

What color family does midnight belong to?

midnight belongs to the near-black color family. It is a dark, vivid color with HSL values: hue 242.7°, saturation 95.7%, lightness 9%.

How do I create lighter and darker shades of midnight?

Lighter variant (lightness 24%): #080378. Darker variant (lightness 5%): #020119. 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.