Skip to content

#0f0f28

a deep, vivid blue · warm · closest name: black

RGB
15, 15, 40
HSL
240°, 46%, 11%
CMYK
63, 63, 0, 84
Luminance
0.0060

Every format

HEX#0f0f28
RGBrgb(15, 15, 40)
HSLhsl(240, 46%, 11%)
CMYKcmyk(63%, 63%, 0%, 84%)
LABlab(5.4 7.5 -16.6)
LCHlch(5.4 18.2 294.4)
OKLCHoklch(0.185 0.050 280.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f0f28 on white: 18.76:1
AA ✓ pass · AA-large · AAA
Aa
#0f0f28 on black: 1.12:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green5.9%
Blue15.7%

CMYK percentages

Cyan62.5%
Magenta62.5%
Yellow0.0%
Key (black)84.3%

Color previews

#0f0f28 text on a black background

contrast 1.12:1

Card sample

#0f0f28 text on a white background

contrast 18.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 15, 40, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 15, 40, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f0f28;
background: linear-gradient(135deg, #0f0f28, #200F28);

Monochromatic scale

Palettes built from #0f0f28

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f0f28 in the Color Lab