Skip to content

#0000aa

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

RGB
0, 0, 170
HSL
240°, 100%, 33%
CMYK
100, 100, 0, 33
Luminance
0.0290

Every format

HEX#0000aa
RGBrgb(0, 0, 170)
HSLhsl(240, 100%, 33%)
CMYKcmyk(100%, 100%, 0%, 33%)
LABlab(19.6 58.4 -79.6)
LCHlch(19.6 98.8 306.3)
OKLCHoklch(0.334 0.231 264.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0000aa on white: 13.29:1
AA ✓ pass · AA-large · AAA
Aa
#0000aa on black: 1.58:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red0.0%
Green0.0%
Blue66.7%

CMYK percentages

Cyan100.0%
Magenta100.0%
Yellow0.0%
Key (black)33.3%

Color previews

#0000aa text on a black background

contrast 1.58:1

Card sample

#0000aa text on a white background

contrast 13.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0000aa

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0000aa in the Color Lab