Skip to content

#0f2bab

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

RGB
15, 43, 171
HSL
229°, 84%, 37%
CMYK
91, 75, 0, 33
Luminance
0.0477

Every format

HEX#0f2bab
RGBrgb(15, 43, 171)
HSLhsl(229, 84%, 37%)
CMYKcmyk(91%, 75%, 0%, 33%)
LABlab(26.1 41.5 -69.5)
LCHlch(26.1 81.0 300.8)
OKLCHoklch(0.380 0.202 265.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f2bab on white: 10.75:1
AA ✓ pass · AA-large · AAA
Aa
#0f2bab on black: 1.95:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green16.9%
Blue67.1%

CMYK percentages

Cyan91.2%
Magenta74.9%
Yellow0.0%
Key (black)32.9%

Color previews

#0f2bab text on a black background

contrast 1.95:1

Card sample

#0f2bab text on a white background

contrast 10.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 43, 171, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 43, 171, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f2bab;
background: linear-gradient(135deg, #0f2bab, #5B0FAB);

Monochromatic scale

Palettes built from #0f2bab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f2bab in the Color Lab