Skip to content

#213980

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

RGB
33, 57, 128
HSL
225°, 59%, 32%
CMYK
74, 56, 0, 50
Luminance
0.0481

Every format

HEX#213980
RGBrgb(33, 57, 128)
HSLhsl(225, 59%, 32%)
CMYKcmyk(74%, 56%, 0%, 50%)
LABlab(26.2 17.1 -42.9)
LCHlch(26.2 46.2 291.8)
OKLCHoklch(0.370 0.124 266.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#213980 on white: 10.71:1
AA ✓ pass · AA-large · AAA
Aa
#213980 on black: 1.96:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.9%
Green22.4%
Blue50.2%

CMYK percentages

Cyan74.2%
Magenta55.5%
Yellow0.0%
Key (black)49.8%

Color previews

#213980 text on a black background

contrast 1.96:1

Card sample

#213980 text on a white background

contrast 10.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #213980

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #213980 in the Color Lab