Skip to content

#0f2965

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

RGB
15, 41, 101
HSL
222°, 74%, 23%
CMYK
85, 59, 0, 60
Luminance
0.0263

Every format

HEX#0f2965
RGBrgb(15, 41, 101)
HSLhsl(222, 74%, 23%)
CMYKcmyk(85%, 59%, 0%, 60%)
LABlab(18.5 15.1 -38.1)
LCHlch(18.5 41.0 291.6)
OKLCHoklch(0.303 0.111 263.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red5.9%
Green16.1%
Blue39.6%

CMYK percentages

Cyan85.1%
Magenta59.4%
Yellow0.0%
Key (black)60.4%

Color previews

#0f2965 text on a black background

contrast 1.53:1

Card sample

#0f2965 text on a white background

contrast 13.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0f2965

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f2965 in the Color Lab