Skip to content

#080f4c

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

RGB
8, 15, 76
HSL
234°, 81%, 17%
CMYK
90, 80, 0, 70
Luminance
0.0092

Every format

HEX#080f4c
RGBrgb(8, 15, 76)
HSLhsl(234, 81%, 17%)
CMYKcmyk(90%, 80%, 0%, 70%)
LABlab(8.3 22.9 -38.0)
LCHlch(8.3 44.4 301.1)
OKLCHoklch(0.219 0.110 268.7)

Copy-ready code

/* CSS */
color: #080f4c;
background-color: #080f4c;
/* Tailwind (arbitrary) */
class="text-[#080f4c] bg-[#080f4c]"
/* SCSS */
$brand: #080f4c;
/* SwiftUI */
Color(red: 0.031, green: 0.059, blue: 0.298)
/* Android */
Color.parseColor("#080f4c")

Accessibility — WCAG contrast

Aa
#080f4c on white: 17.75:1
AA ✓ pass · AA-large · AAA
Aa
#080f4c on black: 1.18:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red3.1%
Green5.9%
Blue29.8%

CMYK percentages

Cyan89.5%
Magenta80.3%
Yellow0.0%
Key (black)70.2%

Color previews

#080f4c text on a black background

contrast 1.18:1

Card sample

#080f4c text on a white background

contrast 17.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(8, 15, 76, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 15, 76, 0.45);
Border & gradient
Gradient panel
border: 3px solid #080f4c;
background: linear-gradient(135deg, #080f4c, #2E084C);

Monochromatic scale

Palettes built from #080f4c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #080f4c in the Color Lab