Skip to content

#2c4fac

a dark, vivid blue · cool · closest name: royalblue

RGB
44, 79, 172
HSL
224°, 59%, 42%
CMYK
74, 54, 0, 33
Luminance
0.0911

Every format

HEX#2c4fac
RGBrgb(44, 79, 172)
HSLhsl(224, 59%, 42%)
CMYKcmyk(74%, 54%, 0%, 33%)
LABlab(36.2 20.8 -53.5)
LCHlch(36.2 57.4 291.2)
OKLCHoklch(0.457 0.155 265.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c4fac on white: 7.44:1
AA ✓ pass · AA-large · AAA
Aa
#2c4fac on black: 2.82:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.3%
Green31.0%
Blue67.5%

CMYK percentages

Cyan74.4%
Magenta54.1%
Yellow0.0%
Key (black)32.5%

Color previews

#2c4fac text on a black background

contrast 2.82:1

Card sample

#2c4fac text on a white background

contrast 7.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2c4fac;
Background color
Panel with #2c4fac background
background-color: #2c4fac;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(44, 79, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(44, 79, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2c4fac;
background: linear-gradient(135deg, #2c4fac, #5E2CAC);

Monochromatic scale

Palettes built from #2c4fac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2c4fac in the Color Lab