Skip to content

#0f4f9e

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

RGB
15, 79, 158
HSL
213°, 83%, 34%
CMYK
91, 50, 0, 38
Luminance
0.0816

Every format

HEX#0f4f9e
RGBrgb(15, 79, 158)
HSLhsl(213, 83%, 34%)
CMYKcmyk(91%, 50%, 0%, 38%)
LABlab(34.3 12.4 -48.2)
LCHlch(34.3 49.8 284.4)
OKLCHoklch(0.438 0.142 256.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f4f9e on white: 7.98:1
AA ✓ pass · AA-large · AAA
Aa
#0f4f9e on black: 2.63:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green31.0%
Blue62.0%

CMYK percentages

Cyan90.5%
Magenta50.0%
Yellow0.0%
Key (black)38.0%

Color previews

#0f4f9e text on a black background

contrast 2.63:1

Card sample

#0f4f9e text on a white background

contrast 7.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0f4f9e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f4f9e in the Color Lab