Skip to content

#0f293f

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

RGB
15, 41, 63
HSL
208°, 62%, 15%
CMYK
76, 35, 0, 75
Luminance
0.0205

Every format

HEX#0f293f
RGBrgb(15, 41, 63)
HSLhsl(208, 62%, 15%)
CMYKcmyk(76%, 35%, 0%, 75%)
LABlab(15.7 -1.4 -16.9)
LCHlch(15.7 17.0 265.4)
OKLCHoklch(0.273 0.052 246.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f293f on white: 14.90:1
AA ✓ pass · AA-large · AAA
Aa
#0f293f on black: 1.41:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green16.1%
Blue24.7%

CMYK percentages

Cyan76.2%
Magenta34.9%
Yellow0.0%
Key (black)75.3%

Color previews

#0f293f text on a black background

contrast 1.41:1

Card sample

#0f293f text on a white background

contrast 14.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 41, 63, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 41, 63, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f293f;
background: linear-gradient(135deg, #0f293f, #150F3F);

Monochromatic scale

Palettes built from #0f293f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f293f in the Color Lab