Skip to content

#212163

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

RGB
33, 33, 99
HSL
240°, 50%, 26%
CMYK
67, 67, 0, 61
Luminance
0.0231

Every format

HEX#212163
RGBrgb(33, 33, 99)
HSLhsl(240, 50%, 26%)
CMYKcmyk(67%, 67%, 0%, 61%)
LABlab(17.0 22.7 -39.1)
LCHlch(17.0 45.2 300.1)
OKLCHoklch(0.294 0.113 276.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#212163 on white: 14.36:1
AA ✓ pass · AA-large · AAA
Aa
#212163 on black: 1.46:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.9%
Green12.9%
Blue38.8%

CMYK percentages

Cyan66.7%
Magenta66.7%
Yellow0.0%
Key (black)61.2%

Color previews

#212163 text on a black background

contrast 1.46:1

Card sample

#212163 text on a white background

contrast 14.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(33, 33, 99, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(33, 33, 99, 0.45);
Border & gradient
Gradient panel
border: 3px solid #212163;
background: linear-gradient(135deg, #212163, #4D2163);

Monochromatic scale

Palettes built from #212163

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #212163 in the Color Lab