What is the HSL code for midnight blue?
The CSS color midnight blue in HSL format is hsl(242.3, 100%, 10.4%). Use this value directly in CSS, SVG, and most design tools.
How do I use midnight blue in CSS?
To apply midnight blue in CSS:
- Text color: color: hsl(242.3, 100%, 10.4%);
- Background: background-color: hsl(242.3, 100%, 10.4%);
- Border: border-color: hsl(242.3, 100%, 10.4%);
What are all the color format values for midnight blue?
| Format | Value |
|---|---|
| HEX | #020035 |
| RGB | rgb(2, 0, 53) |
| HSL | hsl(242.3, 100%, 10.4%) |
| CMYK | cmyk(96.2%, 100%, 0%, 79.2%) |
How do I convert midnight blue to HSL?
Select midnight blue from the color name list in our color converter. The HSL value — hsl(242.3, 100%, 10.4%) — appears instantly alongside HEX, RGB, HSL and CMYK.
What color family does midnight blue belong to?
midnight blue belongs to the blue color family. It is a dark, vivid color with HSL values: hue 242.3°, saturation 100%, lightness 10.4%.
How do I create lighter and darker shades of midnight blue?
Lighter variant (lightness 25.4%): #050082. Darker variant (lightness 5%): #010019. 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.