Skip to content

#0f2fac

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

RGB
15, 47, 172
HSL
228°, 84%, 37%
CMYK
91, 73, 0, 33
Luminance
0.0511

Every format

HEX#0f2fac
RGBrgb(15, 47, 172)
HSLhsl(228, 84%, 37%)
CMYKcmyk(91%, 73%, 0%, 33%)
LABlab(27.1 39.4 -68.5)
LCHlch(27.1 79.0 299.9)
OKLCHoklch(0.387 0.199 265.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f2fac on white: 10.38:1
AA ✓ pass · AA-large · AAA
Aa
#0f2fac on black: 2.02:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green18.4%
Blue67.5%

CMYK percentages

Cyan91.3%
Magenta72.7%
Yellow0.0%
Key (black)32.5%

Color previews

#0f2fac text on a black background

contrast 2.02:1

Card sample

#0f2fac text on a white background

contrast 10.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 47, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 47, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f2fac;
background: linear-gradient(135deg, #0f2fac, #580FAC);

Monochromatic scale

Palettes built from #0f2fac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f2fac in the Color Lab