Maroon Colors  ·  Color Library

Palettes / Colors / #271D4E

#271D4E — Deep Muted Blue

#271D4E is a blue color we call Deep Muted 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 #271D4E 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.

#271D4E 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 #444E1D; it also sits naturally between #1D2C4E and #3F1D4E. In the palettes below you can see it working alongside real color combinations from our collection.

#271D4E · RGB 39, 29, 78

Download PNG swatch SVG

Color values

HEX#271D4E
RGB39, 29, 78
HSL252°, 46%, 21%
HSV252°, 63%, 31%
CMYK50%, 63%, 0%, 69%
XYZ2.65, 1.86, 7.43
Yxy1.86, 0.2221, 0.1558
CIE-Lab14.74, 19.16, -28.73
Hunter Lab13.64, 11.74, -24.39

RGB & CMYK percentages

Red 15% · Green 11% · Blue 31%

Cyan 50% · Magenta 63% · Yellow 0% · Key 69%

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

Previews

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

CSS code for #271D4E

.text { color: #271D4E; }
.background { background-color: #271D4E; }
.border { border: 3px solid #271D4E; }
.text-rgb { color: rgb(39, 29, 78); }
.text-hsl { color: hsl(252, 46%, 21%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #271D4E; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(39, 29, 78, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #271D4E; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(39, 29, 78, 0.8); }

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

Shades of #271D4E

#231A47#211943#1E163C#1A1334#181230#140F29#110C22#0D0A1A#0B0816#07060F

Tints of #271D4E

#36286C#423286#513DA4#6049BC#7A66C7#9080D0#AA9EDB#C1B8E5#DBD6F0#F2F0F9

Tones of #271D4E

#29214A#2B2447#2D2843#2F2B40#312F3D#333239

Color harmonies

Complementary — #444E1D:

Analogous:

Triadic:

Contrast & accessibility

Against white text15.31:1 AAA
Against black text1.37:1 Fails

Best text color on #271D4E: #FFFFFF.

Semi-transparent (opacity) text on #271D4E

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 #271D4E: ·

How #271D4E looks with color blindness

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

Protanopia · #232342Deuteranopia · #23243FTritanopia · #273937

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 neutral 600 · #525252Tailwind zinc 600 · #52525B

Palettes with a similar color

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

Palette 211951
#211951 · #836FFF · #15F5BA · #F0F3FF
Palette Fffbeb
#FFFBEB · #495579 · #263159 · #251749
Burning Drift
#207862 · #13313C · #2C3F98 · #29154F
Crystal Twilight
#CFD0EC · #4547A1 · #353892 · #232552
Amber Mirage
#4A792A · #153622 · #355C63 · #1E214E
Gentle Dusk
#BCAADF · #7E5CBC · #5E3AA2 · #311F51

Similar colors

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

#211951#251749#29154F#232552#1E214E#311F51#262456#211B57#281C59#2D1351#25294B#272343

Browse neighbouring colors

← #271D4D  ·  #271D4F →

Frequently asked questions

What color is #271D4E?

#271D4E is Deep Muted Blue, a blue color (RGB 39, 29, 78). Its closest standard named color is MidnightBlue.

What is the RGB and HSL of #271D4E?

#271D4E is RGB 39, 29, 78 — HSL 252°, 46%, 21% — CMYK 50%, 63%, 0%, 69%.

What colors go with #271D4E?

Its complement is #444E1D; analogous partners are #1D2C4E and #3F1D4E. It also appears in 6+ palettes in our collection.

Can I use #271D4E for text?

White text on #271D4E has a contrast ratio of 15.31:1 (passes WCAG AA); black text gives 1.37:1.