Skip to content

#0f4294

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

RGB
15, 66, 148
HSL
217°, 82%, 32%
CMYK
90, 55, 0, 42
Luminance
0.0614

Every format

HEX#0f4294
RGBrgb(15, 66, 148)
HSLhsl(217, 82%, 32%)
CMYKcmyk(90%, 55%, 0%, 42%)
LABlab(29.8 17.1 -49.5)
LCHlch(29.8 52.4 289.1)
OKLCHoklch(0.400 0.145 260.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f4294 on white: 9.43:1
AA ✓ pass · AA-large · AAA
Aa
#0f4294 on black: 2.23:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green25.9%
Blue58.0%

CMYK percentages

Cyan89.9%
Magenta55.4%
Yellow0.0%
Key (black)42.0%

Color previews

#0f4294 text on a black background

contrast 2.23:1

Card sample

#0f4294 text on a white background

contrast 9.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 66, 148, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 66, 148, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f4294;
background: linear-gradient(135deg, #0f4294, #350F94);

Monochromatic scale

Palettes built from #0f4294

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f4294 in the Color Lab