Midnight purple to RGB — Color Code

#280137
Format Value
HEX #280137
RGB rgb(40, 1, 55)
HSL hsl(283.3, 96.4%, 11%)
CMYK cmyk(27.3%, 98.2%, 0%, 78.4%)
HSV hsv(283.3, 98.2%, 21.6%)

midnight purple color harmonies

Tints & shades of midnight purple

Tints (lighter)

#3c1849 #4f2f5b #63466e #765d80 #8a7492 #9d8ca4 #b1a3b6 #c4bac8 #d8d1db #ebe8ed

Shades (darker)

#240132 #21012d #1d0128 #190123 #16011e #120019 #0f0014 #0b000f #07000a #040005

Contrast & accessibility

The quick brown fox

On white · 18.27:1 · AAA

The quick brown fox

On black · 1.15:1 · Fail

Recommended text color: #ffffff

Use midnight purple in code

CSS color: #280137;
SCSS $color: #280137;
Tailwind bg-[#280137]
Swift UIColor(red: 0.157, green: 0.004, blue: 0.216, alpha: 1)
Android Color.parseColor("#280137")
Flutter Color(0xFF280137)

Colors similar to midnight purple

Browse all Purple colors →

What is the RGB code for midnight purple?

The CSS color midnight purple in RGB format is rgb(40, 1, 55). Use this value directly in CSS, SVG, and most design tools.

How do I use midnight purple in CSS?

To apply midnight purple in CSS:

  • Text color: color: rgb(40, 1, 55);
  • Background: background-color: rgb(40, 1, 55);
  • Border: border-color: rgb(40, 1, 55);

What are all the color format values for midnight purple?

FormatValue
HEX#280137
RGBrgb(40, 1, 55)
HSLhsl(283.3, 96.4%, 11%)
CMYKcmyk(27.3%, 98.2%, 0%, 78.4%)

How do I convert midnight purple to RGB?

Select midnight purple from the color name list in our color converter. The RGB value — rgb(40, 1, 55) — appears instantly alongside HEX, RGB, HSL and CMYK.

What color family does midnight purple belong to?

midnight purple belongs to the purple color family. It is a dark, vivid color with HSL values: hue 283.3°, saturation 96.4%, lightness 11%.

How do I create lighter and darker shades of midnight purple?

Lighter variant (lightness 26%): #5f0282. Darker variant (lightness 5%): #120019. 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.