What is the RGB code for midnight?
The CSS color midnight in RGB format is rgb(3, 1, 45). 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: rgb(3, 1, 45);
- Background: background-color: rgb(3, 1, 45);
- Border: border-color: rgb(3, 1, 45);
What are all the color format values for midnight?
| 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%) |
How do I convert midnight to RGB?
Select midnight from the color name list in our color converter. The RGB value — rgb(3, 1, 45) — 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 RGB used for?
RGB defines colors using three values from 0 to 255 — red, green and blue intensity. It is the native format for screens, monitors and web browsers.