Maroon Colors  ·  Color Library

Palettes / Colors / #021A65

#021A65 — Deep Vivid Blue

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

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

#021A65 · RGB 2, 26, 101

Download PNG swatch SVG

Color values

HEX#021A65
RGB2, 26, 101
HSL225°, 96%, 20%
HSV225°, 98%, 40%
CMYK98%, 74%, 0%, 60%
XYZ2.74, 1.69, 12.49
Yxy1.69, 0.1621, 0.0999
CIE-Lab13.78, 25.03, -45.85
Hunter Lab13.00, 15.84, -50.43

RGB & CMYK percentages

Red 1% · Green 10% · Blue 40%

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

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

Previews

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

CSS code for #021A65

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

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

Shades of #021A65

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

Tints of #021A65

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

Tones of #021A65

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

Color harmonies

Complementary — #644B02:

Analogous:

Triadic:

Contrast & accessibility

Against white text15.69:1 AAA
Against black text1.34:1 Fails

Best text color on #021A65: #FFFFFF.

Semi-transparent (opacity) text on #021A65

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

How #021A65 looks with color blindness

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

Protanopia · #0C0D53Deuteranopia · #0B094ETritanopia · #034541

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

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

Similar colors

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

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

Browse neighbouring colors

← #021A64  ·  #021A66 →

Frequently asked questions

What color is #021A65?

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

What is the RGB and HSL of #021A65?

#021A65 is RGB 2, 26, 101 — HSL 225°, 96%, 20% — CMYK 98%, 74%, 0%, 60%.

What colors go with #021A65?

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

Can I use #021A65 for text?

White text on #021A65 has a contrast ratio of 15.69:1 (passes WCAG AA); black text gives 1.34:1.