Maroon Colors  ·  Color Library

Palettes / Colors / #021A3E

#021A3E — Dark Vivid Blue

#021A3E is a blue color we call Dark 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 #021A3E 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.

#021A3E 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 #402702; it also sits naturally between #023A40 and #080240. In the palettes below you can see it working alongside real color combinations from our collection.

#021A3E · RGB 2, 26, 62

Download PNG swatch SVG

Color values

HEX#021A3E
RGB2, 26, 62
HSL216°, 94%, 13%
HSV216°, 97%, 24%
CMYK97%, 58%, 0%, 76%
XYZ1.26, 1.10, 4.70
Yxy1.10, 0.1789, 0.1556
CIE-Lab9.79, 7.28, -25.70
Hunter Lab10.49, 3.79, -20.59

RGB & CMYK percentages

Red 1% · Green 10% · Blue 24%

Cyan 97% · Magenta 58% · Yellow 0% · Key 76%

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

Previews

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

CSS code for #021A3E

.text { color: #021A3E; }
.background { background-color: #021A3E; }
.border { border: 3px solid #021A3E; }
.text-rgb { color: rgb(2, 26, 62); }
.text-hsl { color: hsl(216, 94%, 13%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #021A3E; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(2, 26, 62, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #021A3E; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(2, 26, 62, 0.8); }

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

Shades of #021A3E

#02193B#021736#021531#01132D#01132D#011128#010E23#010C1E#010A19#010814

Tints of #021A3E

#032B68#053E94#064FBC#075FE4#2077F8#488FF9#70A7FB#97BFFC#C4DBFD#EBF3FE

Tones of #021A3E

#061C3C#0B1D37#0F1E33#141E2E#181F2A#1D2025

Color harmonies

Complementary — #402702:

Analogous:

Triadic:

Contrast & accessibility

Against white text17.21:1 AAA
Against black text1.22:1 Fails

Best text color on #021A3E: #FFFFFF.

Semi-transparent (opacity) text on #021A3E

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 #021A3E: ·

How #021A3E looks with color blindness

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

Protanopia · #0C0D35Deuteranopia · #0B0933Tritanopia · #032E2D

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 slate 600 · #475569

Palettes with a similar color

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

Palette 001f3d
#001F3D · #ED985F · #F7B980 · #E6E6E6
Palette 001f3f
#001F3F · #3A6D8C · #6A9AB0 · #EAD8B1
Palette 001f3f
#001F3F · #083358 · #0DA574 · #FFD717
Palette 001f3f
#001F3F · #083358 · #0D63A5 · #FFD717
Palette 091540
#091540 · #1B2CC1 · #7692FF · #ABD2FA
Palette Fff5e1
#FFF5E1 · #FF6969 · #C80036 · #0C1844

Similar colors

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

#001F3D#001F3F#091540#0C1844#0D1C42#041C32#072541#050E3C#0B1636#0D203A#00204A#0D1C46

Browse neighbouring colors

← #021A3D  ·  #021A3F →

Frequently asked questions

What color is #021A3E?

#021A3E is Dark Vivid Blue, a blue color (RGB 2, 26, 62). Its closest standard named color is MidnightBlue.

What is the RGB and HSL of #021A3E?

#021A3E is RGB 2, 26, 62 — HSL 216°, 94%, 13% — CMYK 97%, 58%, 0%, 76%.

What colors go with #021A3E?

Its complement is #402702; analogous partners are #023A40 and #080240. It also appears in 6+ palettes in our collection.

Can I use #021A3E for text?

White text on #021A3E has a contrast ratio of 17.21:1 (passes WCAG AA); black text gives 1.22:1.