Skip to content

#2f2c6c

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

RGB
47, 44, 108
HSL
243°, 42%, 30%
CMYK
57, 59, 0, 58
Luminance
0.0349

Every format

HEX#2f2c6c
RGBrgb(47, 44, 108)
HSLhsl(243, 42%, 30%)
CMYKcmyk(57%, 59%, 0%, 58%)
LABlab(21.9 21.2 -37.0)
LCHlch(21.9 42.7 299.8)
OKLCHoklch(0.335 0.108 281.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f2c6c on white: 12.37:1
AA ✓ pass · AA-large · AAA
Aa
#2f2c6c on black: 1.70:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green17.3%
Blue42.4%

CMYK percentages

Cyan56.5%
Magenta59.3%
Yellow0.0%
Key (black)57.6%

Color previews

#2f2c6c text on a black background

contrast 1.70:1

Card sample

#2f2c6c text on a white background

contrast 12.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f2c6c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f2c6c in the Color Lab