Skip to content

#2f2f6c

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

RGB
47, 47, 108
HSL
240°, 39%, 30%
CMYK
57, 57, 0, 58
Luminance
0.0372

Every format

HEX#2f2f6c
RGBrgb(47, 47, 108)
HSLhsl(240, 39%, 30%)
CMYKcmyk(57%, 57%, 0%, 58%)
LABlab(22.7 19.1 -35.7)
LCHlch(22.7 40.5 298.2)
OKLCHoklch(0.341 0.103 279.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f2f6c on white: 12.04:1
AA ✓ pass · AA-large · AAA
Aa
#2f2f6c on black: 1.74:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green18.4%
Blue42.4%

CMYK percentages

Cyan56.5%
Magenta56.5%
Yellow0.0%
Key (black)57.6%

Color previews

#2f2f6c text on a black background

contrast 1.74:1

Card sample

#2f2f6c text on a white background

contrast 12.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f2f6c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f2f6c in the Color Lab