Maroon Colors  ·  Color Library

Palettes / Colors / #02408F

#02408F — Vivid Blue

#02408F is a blue color we call 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 #02408F 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.

#02408F 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 #8D5102; it also sits naturally between #02838D and #0B028D. In the palettes below you can see it working alongside real color combinations from our collection.

#02408F · RGB 2, 64, 143

Download PNG swatch SVG

Color values

HEX#02408F
RGB2, 64, 143
HSL214°, 97%, 28%
HSV214°, 99%, 56%
CMYK99%, 55%, 0%, 44%
XYZ6.82, 5.66, 26.72
Yxy5.66, 0.1739, 0.1445
CIE-Lab28.55, 15.73, -48.41
Hunter Lab23.80, 10.93, -53.18

RGB & CMYK percentages

Red 1% · Green 25% · Blue 56%

Cyan 99% · Magenta 55% · Yellow 0% · Key 44%

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

Previews

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

CSS code for #02408F

.text { color: #02408F; }
.background { background-color: #02408F; }
.border { border: 3px solid #02408F; }
.text-rgb { color: rgb(2, 64, 143); }
.text-hsl { color: hsl(214, 97%, 28%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #02408F; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(2, 64, 143, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #02408F; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(2, 64, 143, 0.8); }

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

Shades of #02408F

#023A83#023374#022F69#01285A#012450#011F46#011837#01142D#000D1E#000914

Tints of #02408F

#034EB0#035DD3#046BF1#1D7DFC#4092FC#63A6FD#86BAFD#A5CBFE#C8DFFE#EBF3FF

Tones of #02408F

#0C3F83#164179#20426F#294365#33455B#3D4651

Color harmonies

Complementary — #8D5102:

Analogous:

Triadic:

Contrast & accessibility

Against white text9.85:1 AAA
Against black text2.13:1 Fails

Best text color on #02408F: #FFFFFF.

Semi-transparent (opacity) text on #02408F

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 #02408F: ·

How #02408F looks with color blindness

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

Protanopia · #1D1D7CDeuteranopia · #191577Tritanopia · #056D69

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 slate 600 · #475569Tailwind teal 600 · #0D9488

Palettes with a similar color

These palettes use a close neighbour of #02408F rather than the exact color:

Wild Ruby Solace
#21BF2A · #136C45 · #1DCFDE · #0D428E
Palette 001a6e
#001A6E · #074799 · #009990 · #E1FFBB
Palette 004182
#004182 · #118DF0 · #FBFFA3 · #FF4B68
Palette 003092
#003092 · #00879E · #FFAB5B · #FFF2DB
Palette Cff5e7
#CFF5E7 · #A0E4CB · #59C1BD · #0D4C92
Palette Ffffe7
#FFFFE7 · #C6E5F3 · #539DDB · #084A83

Similar colors

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

#0D428E#074799#004182#003092#0D4C92#084A83#0A4C86#003285#0A3981#05339C#133E87#153E90

Browse neighbouring colors

← #02408E  ·  #024090 →

Frequently asked questions

What color is #02408F?

#02408F is Vivid Blue, a blue color (RGB 2, 64, 143). Its closest standard named color is MidnightBlue.

What is the RGB and HSL of #02408F?

#02408F is RGB 2, 64, 143 — HSL 214°, 97%, 28% — CMYK 99%, 55%, 0%, 44%.

What colors go with #02408F?

Its complement is #8D5102; analogous partners are #02838D and #0B028D. It also appears in 6+ palettes in our collection.

Can I use #02408F for text?

White text on #02408F has a contrast ratio of 9.85:1 (passes WCAG AA); black text gives 2.13:1.