Skip to content

#2c2f7b

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

RGB
44, 47, 123
HSL
238°, 47%, 33%
CMYK
64, 62, 0, 52
Luminance
0.0400

Every format

HEX#2c2f7b
RGBrgb(44, 47, 123)
HSLhsl(238, 47%, 33%)
CMYKcmyk(64%, 62%, 0%, 52%)
LABlab(23.7 23.9 -43.8)
LCHlch(23.7 49.9 298.7)
OKLCHoklch(0.352 0.127 276.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c2f7b on white: 11.67:1
AA ✓ pass · AA-large · AAA
Aa
#2c2f7b on black: 1.80:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.3%
Green18.4%
Blue48.2%

CMYK percentages

Cyan64.2%
Magenta61.8%
Yellow0.0%
Key (black)51.8%

Color previews

#2c2f7b text on a black background

contrast 1.80:1

Card sample

#2c2f7b text on a white background

contrast 11.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c2f7b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2c2f7b in the Color Lab