Skip to content

#0f2b49

a deep, vivid blue · cool · closest name: darkslategray

RGB
15, 43, 73
HSL
211°, 66%, 17%
CMYK
80, 41, 0, 71
Luminance
0.0231

Every format

HEX#0f2b49
RGBrgb(15, 43, 73)
HSLhsl(211, 66%, 17%)
CMYKcmyk(80%, 41%, 0%, 71%)
LABlab(17.0 1.4 -21.7)
LCHlch(17.0 21.8 273.8)
OKLCHoklch(0.285 0.065 252.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f2b49 on white: 14.36:1
AA ✓ pass · AA-large · AAA
Aa
#0f2b49 on black: 1.46:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green16.9%
Blue28.6%

CMYK percentages

Cyan79.5%
Magenta41.1%
Yellow0.0%
Key (black)71.4%

Color previews

#0f2b49 text on a black background

contrast 1.46:1

Card sample

#0f2b49 text on a white background

contrast 14.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0f2b49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f2b49 in the Color Lab