Skip to content

#002080

a dark, electric blue · warm · closest name: midnightblue

RGB
0, 32, 128
HSL
225°, 100%, 25%
CMYK
100, 75, 0, 50
Luminance
0.0259

Every format

HEX#002080
RGBrgb(0, 32, 128)
HSLhsl(225, 100%, 25%)
CMYKcmyk(100%, 75%, 0%, 50%)
LABlab(18.3 31.7 -55.8)
LCHlch(18.3 64.2 299.6)
OKLCHoklch(0.308 0.163 263.4)

Copy-ready code

/* CSS */
color: #002080;
background-color: #002080;
/* Tailwind (arbitrary) */
class="text-[#002080] bg-[#002080]"
/* SCSS */
$brand: #002080;
/* SwiftUI */
Color(red: 0.000, green: 0.125, blue: 0.502)
/* Android */
Color.parseColor("#002080")

Accessibility — WCAG contrast

Aa
#002080 on white: 13.83:1
AA ✓ pass · AA-large · AAA
Aa
#002080 on black: 1.52:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red0.0%
Green12.5%
Blue50.2%

CMYK percentages

Cyan100.0%
Magenta75.0%
Yellow0.0%
Key (black)49.8%

Color previews

#002080 text on a black background

contrast 1.52:1

Card sample

#002080 text on a white background

contrast 13.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #002080;
Background color
Panel with #002080 background
background-color: #002080;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #002080;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(0, 32, 128, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(0, 32, 128, 0.45);
Border & gradient
Gradient panel
border: 3px solid #002080;
background: linear-gradient(135deg, #002080, #350080);

Monochromatic scale

Palettes built from #002080

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #002080 in the Color Lab