Skip to content

#1fa2df

a balanced, electric cyan · cool · closest name: steelblue

RGB
31, 162, 223
HSL
199°, 76%, 50%
CMYK
86, 27, 0, 13
Luminance
0.3146

Every format

HEX#1fa2df
RGBrgb(31, 162, 223)
HSLhsl(199, 76%, 50%)
CMYKcmyk(86%, 27%, 0%, 13%)
LABlab(62.9 -12.2 -40.2)
LCHlch(62.9 42.0 253.1)
OKLCHoklch(0.674 0.137 235.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1fa2df on white: 2.88:1
AA ✗ fail · AA-large · AAA
Aa
#1fa2df on black: 7.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.2%
Green63.5%
Blue87.5%

CMYK percentages

Cyan86.1%
Magenta27.4%
Yellow0.0%
Key (black)12.5%

Color previews

#1fa2df text on a black background

contrast 7.29:1

Card sample

#1fa2df text on a white background

contrast 2.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(31, 162, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(31, 162, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1fa2df;
background: linear-gradient(135deg, #1fa2df, #1F22DF);

Monochromatic scale

Palettes built from #1fa2df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #1fa2df in the Color Lab