Skip to content

#1f2cff

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

RGB
31, 44, 255
HSL
237°, 100%, 56%
CMYK
88, 83, 0, 0
Luminance
0.0931

Every format

HEX#1f2cff
RGBrgb(31, 44, 255)
HSLhsl(237, 100%, 56%)
CMYKcmyk(88%, 83%, 0%, 0%)
LABlab(36.6 68.3 -100.7)
LCHlch(36.6 121.7 304.2)
OKLCHoklch(0.483 0.292 266.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1f2cff on white: 7.34:1
AA ✓ pass · AA-large · AAA
Aa
#1f2cff on black: 2.86:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.2%
Green17.3%
Blue100.0%

CMYK percentages

Cyan87.8%
Magenta82.7%
Yellow0.0%
Key (black)0.0%

Color previews

#1f2cff text on a black background

contrast 2.86:1

Card sample

#1f2cff text on a white background

contrast 7.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #1f2cff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #1f2cff in the Color Lab