Maroon Colors  ·  Color Library

Palettes / Colors / #06166B

#06166B — Deep Vivid Blue

#06166B 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 #06166B 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.

#06166B 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 #6A5906; it also sits naturally between #06496A and #27066A. In the palettes below you can see it working alongside real color combinations from our collection.

#06166B · RGB 6, 22, 107

Download PNG swatch SVG

Color values

HEX#06166B
RGB6, 22, 107
HSL230°, 89%, 22%
HSV230°, 94%, 42%
CMYK94%, 79%, 0%, 58%
XYZ3.02, 1.67, 14.07
Yxy1.67, 0.1607, 0.0892
CIE-Lab13.67, 30.39, -49.96
Hunter Lab12.94, 19.97, -58.30

RGB & CMYK percentages

Red 2% · Green 9% · Blue 42%

Cyan 94% · Magenta 79% · Yellow 0% · Key 58%

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

Previews

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

CSS code for #06166B

.text { color: #06166B; }
.background { background-color: #06166B; }
.border { border: 3px solid #06166B; }
.text-rgb { color: rgb(6, 22, 107); }
.text-hsl { color: hsl(230, 89%, 22%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #06166B; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(6, 22, 107, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #06166B; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(6, 22, 107, 0.8); }

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

Shades of #06166B

#061560#051357#051252#041048#040D3F#030B35#03092B#020827#02061D#010413

Tints of #06166B

#081E8C#0A26B2#0C2ED4#183CF2#3958F3#5B75F5#8295F8#A3B2FA#CAD2FC#ECEFFE

Tones of #06166B

#0D1C63#14205C#1B2555#232A4D#2A2F46#31333F

Color harmonies

Complementary — #6A5906:

Analogous:

Triadic:

Contrast & accessibility

Against white text15.73:1 AAA
Against black text1.33:1 Fails

Best text color on #06166B: #FFFFFF.

Semi-transparent (opacity) text on #06166B

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 #06166B: ·

How #06166B looks with color blindness

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

Protanopia · #0D0D56Deuteranopia · #0C0B51Tritanopia · #074643

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 #06166B rather than the exact color:

Palette 001a6e
#001A6E · #074799 · #009990 · #E1FFBB
Palette 0d1164
#0D1164 · #640D5F · #EA2264 · #F78D60
Palette 0d1a63
#0D1A63 · #1A2CA3 · #2845D6 · #F68048
Palette Ffecd6
#FFECD6 · #4CB9E7 · #3559E0 · #0F2167
Palette 03256c
#03256C · #2541B2 · #1768AC · #E5D549
Crystal Solace
#151B69 · #832ADC · #BF25B4 · #A22350

Similar colors

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

#001A6E#0D1164#0D1A63#0F2167#03256C#151B69#001B79#060771#0D0B61#112073#17166A#10195D

Browse neighbouring colors

← #06166A  ·  #06166C →

Frequently asked questions

What color is #06166B?

#06166B is Deep Vivid Blue, a blue color (RGB 6, 22, 107). Its closest standard named color is MidnightBlue.

What is the RGB and HSL of #06166B?

#06166B is RGB 6, 22, 107 — HSL 230°, 89%, 22% — CMYK 94%, 79%, 0%, 58%.

What colors go with #06166B?

Its complement is #6A5906; analogous partners are #06496A and #27066A. It also appears in 6+ palettes in our collection.

Can I use #06166B for text?

White text on #06166B has a contrast ratio of 15.73:1 (passes WCAG AA); black text gives 1.33:1.