Skip to content

#2c2f7c

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

RGB
44, 47, 124
HSL
238°, 48%, 33%
CMYK
65, 62, 0, 51
Luminance
0.0402

Every format

HEX#2c2f7c
RGBrgb(44, 47, 124)
HSLhsl(238, 48%, 33%)
CMYKcmyk(65%, 62%, 0%, 51%)
LABlab(23.8 24.3 -44.3)
LCHlch(23.8 50.5 298.7)
OKLCHoklch(0.352 0.128 275.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red17.3%
Green18.4%
Blue48.6%

CMYK percentages

Cyan64.5%
Magenta62.1%
Yellow0.0%
Key (black)51.4%

Color previews

#2c2f7c text on a black background

contrast 1.80:1

Card sample

#2c2f7c text on a white background

contrast 11.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c2f7c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2c2f7c in the Color Lab