Skip to content

#080c3b

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

RGB
8, 12, 59
HSL
235°, 76%, 13%
CMYK
86, 80, 0, 77
Luminance
0.0063

Every format

HEX#080c3b
RGBrgb(8, 12, 59)
HSLhsl(235, 76%, 13%)
CMYKcmyk(86%, 80%, 0%, 77%)
LABlab(5.7 16.8 -30.2)
LCHlch(5.7 34.6 299.1)
OKLCHoklch(0.192 0.089 270.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#080c3b on white: 18.65:1
AA ✓ pass · AA-large · AAA
Aa
#080c3b on black: 1.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red3.1%
Green4.7%
Blue23.1%

CMYK percentages

Cyan86.4%
Magenta79.7%
Yellow0.0%
Key (black)76.9%

Color previews

#080c3b text on a black background

contrast 1.13:1

Card sample

#080c3b text on a white background

contrast 18.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #080c3b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #080c3b in the Color Lab