Midnight blue to RGB — Color Code

RGB

rgb(2, 0, 53)

Format Value
HEX #020035
RGB rgb(2, 0, 53)
HSL hsl(242.3, 100%, 10.4%)
CMYK cmyk(96.2%, 100%, 0%, 79.2%)

What is the RGB code for midnight blue?

The CSS color midnight blue in RGB format is rgb(2, 0, 53). 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: rgb(2, 0, 53);
  • Background: background-color: rgb(2, 0, 53);
  • Border: border-color: rgb(2, 0, 53);

What are all the color format values for midnight blue?

FormatValue
HEX#020035
RGBrgb(2, 0, 53)
HSLhsl(242.3, 100%, 10.4%)
CMYKcmyk(96.2%, 100%, 0%, 79.2%)

How do I convert midnight blue to RGB?

Select midnight blue from the color name list in our color converter. The RGB value — rgb(2, 0, 53) — 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 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.