Maroon Colors  ·  Color Library

Palettes / Colors / #003166

#003166 — Deep Vivid Blue

#003166 is a blue color we call Deep Vivid Blue, closest to the named color MidnightBlue (#191970). It belongs to the blue family.

Color name

Closest CSS keyword: midnightblue (#191970) — not an exact match. CSS midnightblue gives you #191970, a different color; use #003166 when you need this exact shade.

Sources: common names follow widely used color-name references; CSS keywords and their hex values follow the CSS Color specification.

#003166 is a cool blue color associated with trust, calm and professionalism. It is deep enough for text, outlines and dark interface surfaces, and makes light colors glow next to it.

Its strongest partner is its complement #663500; it also sits naturally between #006466 and #020066. In the palettes below you can see it working alongside real color combinations from our collection.

#003166 · RGB 0, 49, 102

Download PNG swatch SVG

Color values

HEX#003166
RGB0, 49, 102
HSL211°, 100%, 20%
HSV211°, 100%, 40%
CMYK100%, 52%, 0%, 60%
XYZ3.50, 3.16, 13.00
Yxy3.16, 0.1780, 0.1606
CIE-Lab20.66, 8.28, -35.27
Hunter Lab17.76, 5.07, -33.13

RGB & CMYK percentages

Red 0% · Green 19% · Blue 40%

Cyan 100% · Magenta 52% · Yellow 0% · Key 60%

CMYK values are unprofiled approximations for screen reference — not a print-proofing guarantee.

Previews

Sample text in #003166 on black
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sample text in #003166 on white
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

CSS code for #003166

.text { color: #003166; }
.background { background-color: #003166; }
.border { border: 3px solid #003166; }
.text-rgb { color: rgb(0, 49, 102); }
.text-hsl { color: hsl(211, 100%, 20%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #003166; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(0, 49, 102, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #003166; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(0, 49, 102, 0.8); }

HTML: <p style="color:#003166">Text here</p> · <div style="background-color:#003166">Div content here</div>

Shades of #003166

#002C5C#002A57#00254D#002347#001E3D#001933#00162E#001124#000F1F#000A14

Tints of #003166

#00458F#0056B3#006ADB#007BFF#2990FF#52A5FF#75B8FF#9ECDFF#C2DFFF#EBF4FF

Tones of #003166

#07325F#0F3257#163250#1D3249#243342#2C333A

Color harmonies

Complementary — #663500:

Analogous:

Triadic:

Contrast & accessibility

Against white text12.87:1 AAA
Against black text1.63:1 Fails

Best text color on #003166: #FFFFFF.

Semi-transparent (opacity) text on #003166

Text set with opacity blends into the background, so its real contrast is lower than the solid ratios above. Choose a text color and an opacity to see the blended color and its true ratio:

100%
Sample heading text
Smaller body text shows the effect best.

Blended color: · Contrast against #003166: ·

How #003166 looks with color blindness

Simulated with standard Machado color-vision-deficiency matrices — useful when this color carries meaning in charts, maps or interfaces:

Protanopia · #151659Deuteranopia · #120F56Tritanopia · #024F4D

Closest design-system colors

The nearest matches in the Tailwind CSS, Material Design and Bootstrap palettes — handy when you need a framework class instead of a raw hex:

Bootstrap dark · #212529Tailwind slate 600 · #475569Tailwind gray 600 · #4B5563

Palettes with a similar color

These palettes use a close neighbour of #003166 rather than the exact color:

Palette 000b58
#000B58 · #003161 · #006A67 · #FDEB9E
Palette 000b58
#000B58 · #003161 · #006A67 · #FFF4B7
Palette 021526
#021526 · #03346E · #6EACDA · #E2E2B6
Palette 002b5b
#002B5B · #2B4865 · #256D85 · #8FE3CF
Palette 0c356a
#0C356A · #0174BE · #FFC436 · #FFF0CE
Palette 03256c
#03256C · #2541B2 · #1768AC · #E5D549

Similar colors

The closest colors that actually appear in our palette collection — click any to open its page:

#003161#03346E#002B5B#0C356A#03256C#083358#0E376C#0B2D72#093C5D#00416D#0D296F#00235B

Browse neighbouring colors

← #003165  ·  #003167 →

Frequently asked questions

What color is #003166?

#003166 is Deep Vivid Blue, a blue color (RGB 0, 49, 102). Its closest standard named color is MidnightBlue.

What is the RGB and HSL of #003166?

#003166 is RGB 0, 49, 102 — HSL 211°, 100%, 20% — CMYK 100%, 52%, 0%, 60%.

What colors go with #003166?

Its complement is #663500; analogous partners are #006466 and #020066. It also appears in 6+ palettes in our collection.

Can I use #003166 for text?

White text on #003166 has a contrast ratio of 12.87:1 (passes WCAG AA); black text gives 1.63:1.