Skip to content

#20175f

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

RGB
32, 23, 95
HSL
248°, 61%, 23%
CMYK
66, 76, 0, 63
Luminance
0.0175

Every format

HEX#20175f
RGBrgb(32, 23, 95)
HSLhsl(248, 61%, 23%)
CMYKcmyk(66%, 76%, 0%, 63%)
LABlab(14.1 27.7 -41.3)
LCHlch(14.1 49.7 303.9)
OKLCHoklch(0.271 0.121 280.3)

Copy-ready code

/* CSS */
color: #20175f;
background-color: #20175f;
/* Tailwind (arbitrary) */
class="text-[#20175f] bg-[#20175f]"
/* SCSS */
$brand: #20175f;
/* SwiftUI */
Color(red: 0.125, green: 0.090, blue: 0.373)
/* Android */
Color.parseColor("#20175f")

Accessibility — WCAG contrast

Aa
#20175f on white: 15.56:1
AA ✓ pass · AA-large · AAA
Aa
#20175f on black: 1.35:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.5%
Green9.0%
Blue37.3%

CMYK percentages

Cyan66.3%
Magenta75.8%
Yellow0.0%
Key (black)62.7%

Color previews

#20175f text on a black background

contrast 1.35:1

Card sample

#20175f text on a white background

contrast 15.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #20175f;
Background color
Panel with #20175f background
background-color: #20175f;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(32, 23, 95, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(32, 23, 95, 0.45);
Border & gradient
Gradient panel
border: 3px solid #20175f;
background: linear-gradient(135deg, #20175f, #50175F);

Monochromatic scale

Palettes built from #20175f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #20175f in the Color Lab