Skip to content

#1c2fac

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

RGB
28, 47, 172
HSL
232°, 72%, 39%
CMYK
84, 73, 0, 33
Luminance
0.0526

Every format

HEX#1c2fac
RGBrgb(28, 47, 172)
HSLhsl(232, 72%, 39%)
CMYKcmyk(84%, 73%, 0%, 33%)
LABlab(27.5 40.1 -67.8)
LCHlch(27.5 78.8 300.6)
OKLCHoklch(0.391 0.197 267.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1c2fac on white: 10.24:1
AA ✓ pass · AA-large · AAA
Aa
#1c2fac on black: 2.05:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red11.0%
Green18.4%
Blue67.5%

CMYK percentages

Cyan83.7%
Magenta72.7%
Yellow0.0%
Key (black)32.5%

Color previews

#1c2fac text on a black background

contrast 2.05:1

Card sample

#1c2fac text on a white background

contrast 10.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #1c2fac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #1c2fac in the Color Lab