Maroon Colors  ·  Color Library

Palettes / Colors / #080340

#080340 — Dark Vivid Blue

#080340 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 #080340 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.

#080340 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 #3A3F03; it also sits naturally between #031C3F and #26033F. In the palettes below you can see it working alongside real color combinations from our collection.

#080340 · RGB 8, 3, 64

Download PNG swatch SVG

Color values

HEX#080340
RGB8, 3, 64
HSL245°, 91%, 13%
HSV245°, 95%, 25%
CMYK88%, 95%, 0%, 75%
XYZ1.06, 0.49, 4.89
Yxy0.49, 0.1645, 0.0757
CIE-Lab4.40, 23.72, -35.92
Hunter Lab6.98, 15.47, -38.46

RGB & CMYK percentages

Red 3% · Green 1% · Blue 25%

Cyan 88% · Magenta 95% · Yellow 0% · Key 75%

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

Previews

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

CSS code for #080340

.text { color: #080340; }
.background { background-color: #080340; }
.border { border: 3px solid #080340; }
.text-rgb { color: rgb(8, 3, 64); }
.text-hsl { color: hsl(245, 91%, 13%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #080340; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(8, 3, 64, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #080340; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(8, 3, 64, 0.8); }

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

Shades of #080340

#07033A#070336#060231#06022C#06022C#050227#040222#04011D#030118#020113

Tints of #080340

#0D0566#120792#1709B9#1C0BE0#3524F5#594BF7#7D72F8#A199FA#C9C5FC#EDECFE

Tones of #080340

#0C073B#0F0C37#131032#16142E#1A192A#1E1D25

Color harmonies

Complementary — #3A3F03:

Analogous:

Triadic:

Contrast & accessibility

Against white text19.14:1 AAA
Against black text1.10:1 Fails

Best text color on #080340: #FFFFFF.

Semi-transparent (opacity) text on #080340

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 #080340: ·

How #080340 looks with color blindness

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

Protanopia · #060631Deuteranopia · #06072ETritanopia · #082623

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

Palette 090040
#090040 · #471396 · #B13BFF · #FFCC00
Palette 0a043c
#0A043C · #03506F · #BBBBBB · #FFE3D8
Palette 060047
#060047 · #B3005E · #E90064 · #FF5F9E
Palette 070739
#070739 · #521477 · #C327AB · #E1E099
Palette Ffa3ac
#FFA3AC · #00043C · #005D6C · #00C9B1
Gentle Ruby Cinder
#978AEA · #241297 · #190E5D · #10083F

Similar colors

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

#090040#0A043C#060047#070739#00043C#10083F#030637#050E3C#010736#0F044C#0E0F44#05004E

Browse neighbouring colors

← #08033F  ·  #080341 →

Frequently asked questions

What color is #080340?

#080340 is Dark Vivid Blue, a blue color (RGB 8, 3, 64). Its closest standard named color is MidnightBlue.

What is the RGB and HSL of #080340?

#080340 is RGB 8, 3, 64 — HSL 245°, 91%, 13% — CMYK 88%, 95%, 0%, 75%.

What colors go with #080340?

Its complement is #3A3F03; analogous partners are #031C3F and #26033F. It also appears in 6+ palettes in our collection.

Can I use #080340 for text?

White text on #080340 has a contrast ratio of 19.14:1 (passes WCAG AA); black text gives 1.10:1.