What is the HSL code for midnightblue?
The CSS color midnightblue in HSL format is hsl(240, 63.5%, 26.9%). Use this value directly in CSS, SVG, and most design tools.
How do I use midnightblue in CSS?
To apply midnightblue in CSS:
- Text color: color: hsl(240, 63.5%, 26.9%);
- Background: background-color: hsl(240, 63.5%, 26.9%);
- Border: border-color: hsl(240, 63.5%, 26.9%);
What are all the color format values for midnightblue?
| Format | Value |
|---|---|
| HEX | #191970 |
| RGB | rgb(25, 25, 112) |
| HSL | hsl(240, 63.5%, 26.9%) |
| CMYK | cmyk(77.7%, 77.7%, 0%, 56.1%) |
How do I convert midnightblue to HSL?
Select midnightblue from the color name list in our color converter. The HSL value — hsl(240, 63.5%, 26.9%) — appears instantly alongside HEX, RGB, HSL and CMYK.
What color family does midnightblue belong to?
midnightblue belongs to the blue color family. It is a dark, moderately saturated color with HSL values: hue 240°, saturation 63.5%, lightness 26.9%.
How do I create lighter and darker shades of midnightblue?
Lighter variant (lightness 41.9%): #2727af. Darker variant (lightness 11.899999999999999%): #0b0b32. 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.