Maroon Colors  ·  Color Library

Palettes / Colors / #021FA6

#021FA6 — Vivid Blue

#021FA6 is a blue color we call Vivid Blue, closest to the named color DarkBlue (#00008B). It belongs to the blue family.

Color name

Closest CSS keyword: darkblue (#00008B) — not an exact match. CSS darkblue gives you #00008B, a different color; use #021FA6 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.

#021FA6 is a cool blue color associated with trust, calm and professionalism. 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 #A78802; it also sits naturally between #0272A7 and #3602A7. In the palettes below you can see it working alongside real color combinations from our collection.

#021FA6 · RGB 2, 31, 166

Download PNG swatch SVG

Color values

HEX#021FA6
RGB2, 31, 166
HSL229°, 98%, 33%
HSV229°, 99%, 65%
CMYK99%, 81%, 0%, 35%
XYZ7.40, 3.75, 36.41
Yxy3.75, 0.1556, 0.0788
CIE-Lab22.81, 46.18, -71.90
Hunter Lab19.35, 35.95, -102.85

RGB & CMYK percentages

Red 1% · Green 12% · Blue 65%

Cyan 99% · Magenta 81% · Yellow 0% · Key 35%

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

Previews

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

CSS code for #021FA6

.text { color: #021FA6; }
.background { background-color: #021FA6; }
.border { border: 3px solid #021FA6; }
.text-rgb { color: rgb(2, 31, 166); }
.text-hsl { color: hsl(229, 98%, 33%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #021FA6; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(2, 31, 166, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #021FA6; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(2, 31, 166, 0.8); }

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

Shades of #021FA6

#021D97#011A88#011779#01146A#011260#010F51#010D42#010A32#000723#000414

Tints of #021FA6

#0226C5#022CE8#0D39FD#2B51FD#4E6EFD#6D87FE#8BA0FE#A9B9FE#CDD6FE#EBEEFF

Tones of #021FA6

#0D279B#192F8F#253683#313E77#3D456C#484D60

Color harmonies

Complementary — #A78802:

Analogous:

Triadic:

Contrast & accessibility

Against white text12.01:1 AAA
Against black text1.75:1 Fails

Best text color on #021FA6: #FFFFFF.

Semi-transparent (opacity) text on #021FA6

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

How #021FA6 looks with color blindness

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

Protanopia · #0F0F85Deuteranopia · #0D0B7DTritanopia · #036C66

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:

Material Indigo 500 · #3F51B5Tailwind blue 600 · #2563EBMaterial Deep Purple 500 · #673AB7

Palettes with a similar color

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

Silent Drift
#11AE94 · #1984C0 · #0B1B9F · #4B109E
Palette 0e21a0
#0E21A0 · #4D2FB2 · #B153D7 · #F375C2
Palette 0e21a0
#0E21A0 · #4D2DB7 · #9D44C0 · #EC53B0
Palette Ffde42
#FFDE42 · #53CBF3 · #5478FF · #111FA2
Palette 001bb7
#001BB7 · #0046FF · #FF8040 · #F5F1DC
Palette 001bb7
#001BB7 · #0046FF · #FF8040 · #E9E9E9

Similar colors

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

#0B1B9F#0E21A0#111FA2#001BB7#1116A9#0B2F9F#0F25B4#0E11B0#050C9C#1311A2#05339C#19229E

Browse neighbouring colors

← #021FA5  ·  #021FA7 →

Frequently asked questions

What color is #021FA6?

#021FA6 is Vivid Blue, a blue color (RGB 2, 31, 166). Its closest standard named color is DarkBlue.

What is the RGB and HSL of #021FA6?

#021FA6 is RGB 2, 31, 166 — HSL 229°, 98%, 33% — CMYK 99%, 81%, 0%, 35%.

What colors go with #021FA6?

Its complement is #A78802; analogous partners are #0272A7 and #3602A7. It also appears in 6+ palettes in our collection.

Can I use #021FA6 for text?

White text on #021FA6 has a contrast ratio of 12.01:1 (passes WCAG AA); black text gives 1.75:1.