Skip to content

#2f2f6f

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

RGB
47, 47, 111
HSL
240°, 41%, 31%
CMYK
58, 58, 0, 57
Luminance
0.0379

Every format

HEX#2f2f6f
RGBrgb(47, 47, 111)
HSLhsl(240, 41%, 31%)
CMYKcmyk(58%, 58%, 0%, 57%)
LABlab(22.9 20.2 -37.3)
LCHlch(22.9 42.4 298.4)
OKLCHoklch(0.344 0.108 279.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f2f6f on white: 11.95:1
AA ✓ pass · AA-large · AAA
Aa
#2f2f6f on black: 1.76:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green18.4%
Blue43.5%

CMYK percentages

Cyan57.7%
Magenta57.7%
Yellow0.0%
Key (black)56.5%

Color previews

#2f2f6f text on a black background

contrast 1.76:1

Card sample

#2f2f6f text on a white background

contrast 11.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f2f6f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f2f6f in the Color Lab