Skip to content

#050d1f

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

RGB
5, 13, 31
HSL
222°, 72%, 7%
CMYK
84, 58, 0, 88
Luminance
0.0042

Every format

HEX#050d1f
RGBrgb(5, 13, 31)
HSLhsl(222, 72%, 7%)
CMYKcmyk(84%, 58%, 0%, 88%)
LABlab(3.8 2.3 -12.2)
LCHlch(3.8 12.4 280.5)
OKLCHoklch(0.162 0.041 262.7)

Copy-ready code

/* CSS */
color: #050d1f;
background-color: #050d1f;
/* Tailwind (arbitrary) */
class="text-[#050d1f] bg-[#050d1f]"
/* SCSS */
$brand: #050d1f;
/* SwiftUI */
Color(red: 0.020, green: 0.051, blue: 0.122)
/* Android */
Color.parseColor("#050d1f")

Accessibility — WCAG contrast

Aa
#050d1f on white: 19.38:1
AA ✓ pass · AA-large · AAA
Aa
#050d1f on black: 1.08:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red2.0%
Green5.1%
Blue12.2%

CMYK percentages

Cyan83.9%
Magenta58.1%
Yellow0.0%
Key (black)87.8%

Color previews

#050d1f text on a black background

contrast 1.08:1

Card sample

#050d1f text on a white background

contrast 19.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #050d1f;
Background color
Panel with #050d1f background
background-color: #050d1f;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #050d1f;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(5, 13, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(5, 13, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #050d1f;
background: linear-gradient(135deg, #050d1f, #0E051F);

Monochromatic scale

Palettes built from #050d1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #050d1f in the Color Lab