Maroon Colors  ·  Color Library

Palettes / Colors / #021A64

#021A64 — Deep Vivid Blue

#021A64 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 #021A64 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.

#021A64 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 #644B02; it also sits naturally between #024B64 and #1B0264. In the palettes below you can see it working alongside real color combinations from our collection.

#021A64 · RGB 2, 26, 100

Download PNG swatch SVG

Color values

HEX#021A64
RGB2, 26, 100
HSL225°, 96%, 20%
HSV225°, 98%, 39%
CMYK98%, 74%, 0%, 61%
XYZ2.69, 1.67, 12.24
Yxy1.67, 0.1623, 0.1007
CIE-Lab13.66, 24.61, -45.38
Hunter Lab12.93, 15.51, -49.60

RGB & CMYK percentages

Red 1% · Green 10% · Blue 39%

Cyan 98% · Magenta 74% · Yellow 0% · Key 61%

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

Previews

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

CSS code for #021A64

.text { color: #021A64; }
.background { background-color: #021A64; }
.border { border: 3px solid #021A64; }
.text-rgb { color: rgb(2, 26, 100); }
.text-hsl { color: hsl(225, 96%, 20%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #021A64; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(2, 26, 100, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #021A64; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(2, 26, 100, 0.8); }

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

Shades of #021A64

#02185A#021755#02144B#011346#01103C#010D32#010C2D#010923#01081E#000514

Tints of #021A64

#03258C#042EAF#0439D7#0542FA#2D60FB#557FFC#7899FC#A0B7FD#C3D2FE#EBF0FF

Tones of #021A64

#091E5D#102156#17254F#1E2948#252C41#2C2F3A

Color harmonies

Complementary — #644B02:

Analogous:

Triadic:

Contrast & accessibility

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

Best text color on #021A64: #FFFFFF.

Semi-transparent (opacity) text on #021A64

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

How #021A64 looks with color blindness

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

Protanopia · #0C0D52Deuteranopia · #0B094ETritanopia · #034441

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 #021A64 rather than the exact color:

Palette Fc4100
#FC4100 · #FFC55A · #00215E · #2C4E80
Palette 001a6e
#001A6E · #074799 · #009990 · #E1FFBB
Palette 0d1a63
#0D1A63 · #1A2CA3 · #2845D6 · #F68048
Palette 00235b
#00235B · #E21818 · #FFDD83 · #98DFD6
Palette 03256c
#03256C · #2541B2 · #1768AC · #E5D549
Palette 0d1164
#0D1164 · #640D5F · #EA2264 · #F78D60

Similar colors

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

#00215E#001A6E#0D1A63#00235B#03256C#0D1164#0F2167#10195D#021A54#0A1D56#091057#002455

Browse neighbouring colors

← #021A63  ·  #021A65 →

Frequently asked questions

What color is #021A64?

#021A64 is Deep Vivid Blue, a blue color (RGB 2, 26, 100). Its closest standard named color is MidnightBlue.

What is the RGB and HSL of #021A64?

#021A64 is RGB 2, 26, 100 — HSL 225°, 96%, 20% — CMYK 98%, 74%, 0%, 61%.

What colors go with #021A64?

Its complement is #644B02; analogous partners are #024B64 and #1B0264. It also appears in 6+ palettes in our collection.

Can I use #021A64 for text?

White text on #021A64 has a contrast ratio of 15.74:1 (passes WCAG AA); black text gives 1.33:1.