Skip to content

#2d2f6f

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

RGB
45, 47, 111
HSL
238°, 42%, 31%
CMYK
60, 58, 0, 57
Luminance
0.0374

Every format

HEX#2d2f6f
RGBrgb(45, 47, 111)
HSLhsl(238, 42%, 31%)
CMYKcmyk(60%, 58%, 0%, 57%)
LABlab(22.8 19.8 -37.5)
LCHlch(22.8 42.4 297.7)
OKLCHoklch(0.342 0.108 277.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d2f6f on white: 12.02:1
AA ✓ pass · AA-large · AAA
Aa
#2d2f6f on black: 1.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green18.4%
Blue43.5%

CMYK percentages

Cyan59.5%
Magenta57.7%
Yellow0.0%
Key (black)56.5%

Color previews

#2d2f6f text on a black background

contrast 1.75:1

Card sample

#2d2f6f text on a white background

contrast 12.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d2f6f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d2f6f in the Color Lab