Skip to content

#0f2f4b

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

RGB
15, 47, 75
HSL
208°, 67%, 18%
CMYK
80, 37, 0, 71
Luminance
0.0264

Every format

HEX#0f2f4b
RGBrgb(15, 47, 75)
HSLhsl(208, 67%, 18%)
CMYKcmyk(80%, 37%, 0%, 71%)
LABlab(18.6 -0.6 -20.7)
LCHlch(18.6 20.7 268.4)
OKLCHoklch(0.297 0.063 248.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f2f4b on white: 13.74:1
AA ✓ pass · AA-large · AAA
Aa
#0f2f4b on black: 1.53:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green18.4%
Blue29.4%

CMYK percentages

Cyan80.0%
Magenta37.3%
Yellow0.0%
Key (black)70.6%

Color previews

#0f2f4b text on a black background

contrast 1.53:1

Card sample

#0f2f4b text on a white background

contrast 13.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0f2f4b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f2f4b in the Color Lab