Maroon Colors  ·  Color Library

Palettes / Colors / #2F166F

#2F166F — Deep Purple

#2F166F is a purple color we call Deep Purple, closest to the named color MidnightBlue (#191970). It belongs to the purple family.

Color name

Closest CSS keyword: midnightblue (#191970) — not an exact match. CSS midnightblue gives you #191970, a different color; use #2F166F 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.

#2F166F is a cool purple color associated with luxury, creativity and mystery. It is saturated enough to be the accent — buttons, highlights and calls to action — while neutrals do the quiet work around it.

Its strongest partner is its complement #566F16; it also sits naturally between #16296F and #5B166F. In the palettes below you can see it working alongside real color combinations from our collection.

#2F166F · RGB 47, 22, 111

Download PNG swatch SVG

Color values

HEX#2F166F
RGB47, 22, 111
HSL257°, 67%, 26%
HSV257°, 80%, 44%
CMYK58%, 80%, 0%, 56%
XYZ4.33, 2.33, 15.26
Yxy2.33, 0.1975, 0.1061
CIE-Lab17.11, 35.83, -46.80
Hunter Lab15.25, 25.18, -51.38

RGB & CMYK percentages

Red 18% · Green 9% · Blue 44%

Cyan 58% · Magenta 80% · Yellow 0% · Key 56%

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

Previews

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

CSS code for #2F166F

.text { color: #2F166F; }
.background { background-color: #2F166F; }
.border { border: 3px solid #2F166F; }
.text-rgb { color: rgb(47, 22, 111); }
.text-hsl { color: hsl(257, 67%, 26%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #2F166F; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(47, 22, 111, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #2F166F; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(47, 22, 111, 0.8); }

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

Shades of #2F166F

#2B1466#28135E#221051#1F0E48#1B0D40#180B37#14092F#0E0722#0B051A#070311

Tints of #2F166F

#3C1C8D#4822AA#5528C8#683BD8#7F59DE#9677E4#AD95EA#C4B2F0#DBD0F6#F2EEFC

Tones of #2F166F

#321D68#352262#37295B#3A2F56#3D364F#3F3C49

Color harmonies

Complementary — #566F16:

Analogous:

Triadic:

Contrast & accessibility

Against white text14.33:1 AAA
Against black text1.47:1 Fails

Best text color on #2F166F: #FFFFFF.

Semi-transparent (opacity) text on #2F166F

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 #2F166F: ·

How #2F166F looks with color blindness

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

Protanopia · #242459Deuteranopia · #262854Tritanopia · #2E4845

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:

Tailwind slate 600 · #475569Tailwind gray 600 · #4B5563Tailwind zinc 600 · #52525B

Palettes with a similar color

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

Dreamy Ruby Mirage
#1E537B · #2C176C · #7D2576 · #2B0A0E
Palette F2afef
#F2AFEF · #C499F3 · #7360DF · #33186B
Royal Ruby Solace
#2A7EB1 · #1B38AB · #29176D · #471067
Honey Ruby Summit
#B9AFE9 · #8977DF · #5840C9 · #26186D
Tender Ruby Meadow
#206241 · #225C7A · #302173 · #2B0F2A
Dreamy Zephyr
#5B8BCF · #2D1F77 · #882CAE · #8C2770

Similar colors

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

#2C176C#33186B#29176D#26186D#302173#2D1F77#320A6B#2E236C#211572#371D79#362370#282066

Browse neighbouring colors

← #2F166E  ·  #2F1670 →

Frequently asked questions

What color is #2F166F?

#2F166F is Deep Purple, a purple color (RGB 47, 22, 111). Its closest standard named color is MidnightBlue.

What is the RGB and HSL of #2F166F?

#2F166F is RGB 47, 22, 111 — HSL 257°, 67%, 26% — CMYK 58%, 80%, 0%, 56%.

What colors go with #2F166F?

Its complement is #566F16; analogous partners are #16296F and #5B166F. It also appears in 6+ palettes in our collection.

Can I use #2F166F for text?

White text on #2F166F has a contrast ratio of 14.33:1 (passes WCAG AA); black text gives 1.47:1.