Skip to content

#2c2d8f

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

RGB
44, 45, 143
HSL
239°, 53%, 37%
CMYK
69, 69, 0, 44
Luminance
0.0440

Every format

HEX#2c2d8f
RGBrgb(44, 45, 143)
HSLhsl(239, 53%, 37%)
CMYKcmyk(69%, 69%, 0%, 44%)
LABlab(24.9 32.5 -54.2)
LCHlch(24.9 63.2 300.9)
OKLCHoklch(0.366 0.157 274.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c2d8f on white: 11.18:1
AA ✓ pass · AA-large · AAA
Aa
#2c2d8f on black: 1.88:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.3%
Green17.6%
Blue56.1%

CMYK percentages

Cyan69.2%
Magenta68.5%
Yellow0.0%
Key (black)43.9%

Color previews

#2c2d8f text on a black background

contrast 1.88:1

Card sample

#2c2d8f text on a white background

contrast 11.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(44, 45, 143, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(44, 45, 143, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2c2d8f;
background: linear-gradient(135deg, #2c2d8f, #6D2C8F);

Monochromatic scale

Palettes built from #2c2d8f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2c2d8f in the Color Lab