Skip to content

#0f4fba

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

RGB
15, 79, 186
HSL
218°, 85%, 39%
CMYK
92, 58, 0, 27
Luminance
0.0924

Every format

HEX#0f4fba
RGBrgb(15, 79, 186)
HSLhsl(218, 85%, 39%)
CMYKcmyk(92%, 58%, 0%, 27%)
LABlab(36.4 23.8 -61.4)
LCHlch(36.4 65.8 291.2)
OKLCHoklch(0.460 0.180 260.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f4fba on white: 7.37:1
AA ✓ pass · AA-large · AAA
Aa
#0f4fba on black: 2.85:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green31.0%
Blue72.9%

CMYK percentages

Cyan91.9%
Magenta57.5%
Yellow0.0%
Key (black)27.1%

Color previews

#0f4fba text on a black background

contrast 2.85:1

Card sample

#0f4fba text on a white background

contrast 7.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 79, 186, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 79, 186, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f4fba;
background: linear-gradient(135deg, #0f4fba, #410FBA);

Monochromatic scale

Palettes built from #0f4fba

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f4fba in the Color Lab