Skip to content

#0f0c2f

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

RGB
15, 12, 47
HSL
245°, 59%, 12%
CMYK
68, 75, 0, 82
Luminance
0.0057

Every format

HEX#0f0c2f
RGBrgb(15, 12, 47)
HSLhsl(245, 59%, 12%)
CMYKcmyk(68%, 75%, 0%, 82%)
LABlab(5.2 12.3 -22.3)
LCHlch(5.2 25.4 298.9)
OKLCHoklch(0.184 0.067 281.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f0c2f on white: 18.85:1
AA ✓ pass · AA-large · AAA
Aa
#0f0c2f on black: 1.11:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green4.7%
Blue18.4%

CMYK percentages

Cyan68.1%
Magenta74.5%
Yellow0.0%
Key (black)81.6%

Color previews

#0f0c2f text on a black background

contrast 1.11:1

Card sample

#0f0c2f text on a white background

contrast 18.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0f0c2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f0c2f in the Color Lab