What is the HEX code for night blue?
The CSS color night blue in HEX format is #040348. Use this value directly in CSS, SVG, and most design tools.
How do I use night blue in CSS?
To apply night blue in CSS:
- Text color: color: #040348;
- Background: background-color: #040348;
- Border: border-color: #040348;
What are all the color format values for night blue?
| Format | Value |
|---|---|
| HEX | #040348 |
| RGB | rgb(4, 3, 72) |
| HSL | hsl(240.9, 92%, 14.7%) |
| CMYK | cmyk(94.4%, 95.8%, 0%, 71.8%) |
How do I convert night blue to HEX?
Select night blue from the color name list in our color converter. The HEX value — #040348 — appears instantly alongside HEX, RGB, HSL and CMYK.
What color family does night blue belong to?
night blue belongs to the blue color family. It is a dark, vivid color with HSL values: hue 240.9°, saturation 92%, lightness 14.7%.
How do I create lighter and darker shades of night blue?
Lighter variant (lightness 29.7%): #080691. Darker variant (lightness 5%): #010118. These values are computed by adjusting HSL lightness ±15% while keeping the same hue and saturation.
What is HEX used for?
HEX color codes are used in CSS, HTML and design tools. They encode red, green and blue as two hexadecimal digits each (00–FF), forming a compact 6-character code like #ff0000.