Skip to content

#1f2df4

a balanced, electric blue · warm · closest name: blue

RGB
31, 45, 244
HSL
236°, 91%, 54%
CMYK
87, 82, 0, 4
Luminance
0.0870

Every format

HEX#1f2df4
RGBrgb(31, 45, 244)
HSLhsl(236, 91%, 54%)
CMYKcmyk(87%, 82%, 0%, 4%)
LABlab(35.4 64.7 -96.5)
LCHlch(35.4 116.2 303.8)
OKLCHoklch(0.471 0.280 266.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1f2df4 on white: 7.66:1
AA ✓ pass · AA-large · AAA
Aa
#1f2df4 on black: 2.74:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.2%
Green17.6%
Blue95.7%

CMYK percentages

Cyan87.3%
Magenta81.6%
Yellow0.0%
Key (black)4.3%

Color previews

#1f2df4 text on a black background

contrast 2.74:1

Card sample

#1f2df4 text on a white background

contrast 7.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(31, 45, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(31, 45, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1f2df4;
background: linear-gradient(135deg, #1f2df4, #9F1FF4);

Monochromatic scale

Palettes built from #1f2df4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #1f2df4 in the Color Lab