Skip to content

#002c64

a deep, electric blue · cool · closest name: midnightblue

RGB
0, 44, 100
HSL
214°, 100%, 20%
CMYK
100, 56, 0, 61
Luminance
0.0272

Every format

HEX#002c64
RGBrgb(0, 44, 100)
HSLhsl(214, 100%, 20%)
CMYKcmyk(100%, 56%, 0%, 61%)
LABlab(18.9 11.1 -36.8)
LCHlch(18.9 38.5 286.7)
OKLCHoklch(0.304 0.109 257.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#002c64 on white: 13.60:1
AA ✓ pass · AA-large · AAA
Aa
#002c64 on black: 1.54:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red0.0%
Green17.3%
Blue39.2%

CMYK percentages

Cyan100.0%
Magenta56.0%
Yellow0.0%
Key (black)60.8%

Color previews

#002c64 text on a black background

contrast 1.54:1

Card sample

#002c64 text on a white background

contrast 13.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #002c64

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #002c64 in the Color Lab