Deep blue to RGB — Color Code

#040273
Format Value
HEX #040273
RGB rgb(4, 2, 115)
HSL hsl(241.1, 96.6%, 22.9%)
CMYK cmyk(96.5%, 98.3%, 0%, 54.9%)
HSV hsv(241.1, 98.3%, 45.1%)

deep blue color harmonies

Tints & shades of deep blue

Tints (lighter)

#1b1980 #32308c #484799 #5f5ea6 #7675b3 #8d8cbf #a4a3cc #bbbad9 #d1d1e6 #e8e8f2

Shades (darker)

#040269 #03025e #030154 #030149 #02013f #020134 #01012a #01011f #010015 #00000a

Contrast & accessibility

The quick brown fox

On white · 16.65:1 · AAA

The quick brown fox

On black · 1.26:1 · Fail

Recommended text color: #ffffff

Use deep blue in code

CSS color: #040273;
SCSS $color: #040273;
Tailwind bg-[#040273]
Swift UIColor(red: 0.016, green: 0.008, blue: 0.451, alpha: 1)
Android Color.parseColor("#040273")
Flutter Color(0xFF040273)

Colors similar to deep blue

Browse all Blue colors →

What is the RGB code for deep blue?

The CSS color deep blue in RGB format is rgb(4, 2, 115). Use this value directly in CSS, SVG, and most design tools.

How do I use deep blue in CSS?

To apply deep blue in CSS:

  • Text color: color: rgb(4, 2, 115);
  • Background: background-color: rgb(4, 2, 115);
  • Border: border-color: rgb(4, 2, 115);

What are all the color format values for deep blue?

FormatValue
HEX#040273
RGBrgb(4, 2, 115)
HSLhsl(241.1, 96.6%, 22.9%)
CMYKcmyk(96.5%, 98.3%, 0%, 54.9%)

How do I convert deep blue to RGB?

Select deep blue from the color name list in our color converter. The RGB value — rgb(4, 2, 115) — appears instantly alongside HEX, RGB, HSL and CMYK.

What color family does deep blue belong to?

deep blue belongs to the blue color family. It is a dark, vivid color with HSL values: hue 241.1°, saturation 96.6%, lightness 22.9%.

How do I create lighter and darker shades of deep blue?

Lighter variant (lightness 37.9%): #0703be. Darker variant (lightness 7.899999999999999%): #010128. 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.