Skip to content

#0e2f80

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

RGB
14, 47, 128
HSL
223°, 80%, 28%
CMYK
89, 63, 0, 50
Luminance
0.0368

Every format

HEX#0e2f80
RGBrgb(14, 47, 128)
HSLhsl(223, 80%, 28%)
CMYKcmyk(89%, 63%, 0%, 50%)
LABlab(22.6 22.1 -48.8)
LCHlch(22.6 53.5 294.4)
OKLCHoklch(0.341 0.142 263.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0e2f80 on white: 12.09:1
AA ✓ pass · AA-large · AAA
Aa
#0e2f80 on black: 1.74:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.5%
Green18.4%
Blue50.2%

CMYK percentages

Cyan89.1%
Magenta63.3%
Yellow0.0%
Key (black)49.8%

Color previews

#0e2f80 text on a black background

contrast 1.74:1

Card sample

#0e2f80 text on a white background

contrast 12.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0e2f80

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0e2f80 in the Color Lab