Maroon Colors  ·  Color Library

Palettes / Colors / #0840BA

#0840BA — Vivid Blue

#0840BA is a blue color we call Vivid Blue, closest to the named color DarkSlateBlue (#483D8B). It belongs to the blue family.

Color name

Closest CSS keyword: darkslateblue (#483D8B) — not an exact match. CSS darkslateblue gives you #483D8B, a different color; use #0840BA 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.

#0840BA 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 #BA8208; it also sits naturally between #0899BA and #2808BA. In the palettes below you can see it working alongside real color combinations from our collection.

#0840BA · RGB 8, 64, 186

Download PNG swatch SVG

Color values

HEX#0840BA
RGB8, 64, 186
HSL221°, 92%, 38%
HSV221°, 96%, 73%
CMYK96%, 66%, 0%, 27%
XYZ10.80, 7.26, 47.29
Yxy7.26, 0.1652, 0.1112
CIE-Lab32.40, 33.53, -68.01
Hunter Lab26.95, 26.19, -89.96

RGB & CMYK percentages

Red 3% · Green 25% · Blue 73%

Cyan 96% · Magenta 66% · Yellow 0% · Key 27%

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

Previews

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

CSS code for #0840BA

.text { color: #0840BA; }
.background { background-color: #0840BA; }
.border { border: 3px solid #0840BA; }
.text-rgb { color: rgb(8, 64, 186); }
.text-hsl { color: hsl(221, 92%, 38%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #0840BA; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(8, 64, 186, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #0840BA; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(8, 64, 186, 0.8); }

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

Shades of #0840BA

#073BAB#063498#062F89#052976#042367#041E58#031845#021336#010C22#010714

Tints of #0840BA

#094AD7#0A54F5#2366F6#407AF7#5D8EF8#7BA3F9#98B7FB#B1C8FC#CEDDFD#EBF1FE

Tones of #0840BA

#1445AD#2149A1#2E4E94#3B5387#48587A#545C6D

Color harmonies

Complementary — #BA8208:

Analogous:

Triadic:

Contrast & accessibility

Against white text8.56:1 AAA
Against black text2.45:1 Fails

Best text color on #0840BA: #FFFFFF.

Semi-transparent (opacity) text on #0840BA

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 #0840BA: ·

How #0840BA looks with color blindness

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

Protanopia · #20219CDeuteranopia · #1D1995Tritanopia · #0B8580

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 · #2563EBTailwind sky 600 · #0284C7

Palettes with a similar color

These palettes use a close neighbour of #0840BA rather than the exact color:

Palette 093fb4
#093FB4 · #FFFCFB · #FFD8D8 · #ED3500
Ruby Lagoon
#1F06AC · #0F42C0 · #5882E8 · #E3EF4F
Palette 153e90
#153E90 · #0E49B5 · #54E346 · #FFFAA4
Crystal Ruby Aurora
#134077 · #1143B0 · #6895D5 · #CBEFEE
Velvet Ruby Tempest
#0D1C46 · #1944BE · #5FC4C9 · #B6E3EA
Palette 064acb
#064ACB · #366ED8 · #F3A953 · #F2F3F3

Similar colors

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

#093FB4#0F42C0#0E49B5#1143B0#1944BE#064ACB#1A3AB4#0033C7#1136C9#024CAA#1C39BC#1230AE

Browse neighbouring colors

← #0840B9  ·  #0840BB →

Frequently asked questions

What color is #0840BA?

#0840BA is Vivid Blue, a blue color (RGB 8, 64, 186). Its closest standard named color is DarkSlateBlue.

What is the RGB and HSL of #0840BA?

#0840BA is RGB 8, 64, 186 — HSL 221°, 92%, 38% — CMYK 96%, 66%, 0%, 27%.

What colors go with #0840BA?

Its complement is #BA8208; analogous partners are #0899BA and #2808BA. It also appears in 6+ palettes in our collection.

Can I use #0840BA for text?

White text on #0840BA has a contrast ratio of 8.56:1 (passes WCAG AA); black text gives 2.45:1.