Skip to content

#0d1f2c

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

RGB
13, 31, 44
HSL
205°, 54%, 11%
CMYK
71, 30, 0, 83
Luminance
0.0125

Every format

HEX#0d1f2c
RGBrgb(13, 31, 44)
HSLhsl(205, 54%, 11%)
CMYKcmyk(71%, 30%, 0%, 83%)
LABlab(10.9 -2.5 -10.9)
LCHlch(10.9 11.2 257.1)
OKLCHoklch(0.231 0.035 241.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0d1f2c on white: 16.81:1
AA ✓ pass · AA-large · AAA
Aa
#0d1f2c on black: 1.25:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.1%
Green12.2%
Blue17.3%

CMYK percentages

Cyan70.5%
Magenta29.5%
Yellow0.0%
Key (black)82.7%

Color previews

#0d1f2c text on a black background

contrast 1.25:1

Card sample

#0d1f2c text on a white background

contrast 16.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0d1f2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0d1f2c in the Color Lab