Skip to content

#2d459f

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

RGB
45, 69, 159
HSL
227°, 56%, 40%
CMYK
72, 57, 0, 38
Luminance
0.0732

Every format

HEX#2d459f
RGBrgb(45, 69, 159)
HSLhsl(227, 56%, 40%)
CMYKcmyk(72%, 57%, 0%, 38%)
LABlab(32.5 22.6 -51.6)
LCHlch(32.5 56.4 293.7)
OKLCHoklch(0.427 0.149 268.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d459f on white: 8.52:1
AA ✓ pass · AA-large · AAA
Aa
#2d459f on black: 2.46:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green27.1%
Blue62.4%

CMYK percentages

Cyan71.7%
Magenta56.6%
Yellow0.0%
Key (black)37.6%

Color previews

#2d459f text on a black background

contrast 2.46:1

Card sample

#2d459f text on a white background

contrast 8.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 69, 159, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 69, 159, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d459f;
background: linear-gradient(135deg, #2d459f, #612D9F);

Monochromatic scale

Palettes built from #2d459f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d459f in the Color Lab