Skip to content

#1c2f6f

a dark, vivid blue · warm · closest name: midnightblue

RGB
28, 47, 111
HSL
226°, 60%, 27%
CMYK
75, 58, 0, 57
Luminance
0.0343

Every format

HEX#1c2f6f
RGBrgb(28, 47, 111)
HSLhsl(226, 60%, 27%)
CMYKcmyk(75%, 58%, 0%, 57%)
LABlab(21.7 16.6 -39.4)
LCHlch(21.7 42.8 292.9)
OKLCHoklch(0.331 0.114 267.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1c2f6f on white: 12.46:1
AA ✓ pass · AA-large · AAA
Aa
#1c2f6f on black: 1.69:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red11.0%
Green18.4%
Blue43.5%

CMYK percentages

Cyan74.8%
Magenta57.7%
Yellow0.0%
Key (black)56.5%

Color previews

#1c2f6f text on a black background

contrast 1.69:1

Card sample

#1c2f6f text on a white background

contrast 12.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #1c2f6f;
Background color
Panel with #1c2f6f background
background-color: #1c2f6f;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #1c2f6f;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(28, 47, 111, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(28, 47, 111, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1c2f6f;
background: linear-gradient(135deg, #1c2f6f, #401C6F);

Monochromatic scale

Palettes built from #1c2f6f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #1c2f6f in the Color Lab