Skip to content

#1f2dff

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

RGB
31, 45, 255
HSL
236°, 100%, 56%
CMYK
88, 82, 0, 0
Luminance
0.0939

Every format

HEX#1f2dff
RGBrgb(31, 45, 255)
HSLhsl(236, 100%, 56%)
CMYKcmyk(88%, 82%, 0%, 0%)
LABlab(36.7 67.9 -100.5)
LCHlch(36.7 121.3 304.1)
OKLCHoklch(0.484 0.291 266.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red12.2%
Green17.6%
Blue100.0%

CMYK percentages

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

Color previews

#1f2dff text on a black background

contrast 2.88:1

Card sample

#1f2dff text on a white background

contrast 7.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #1f2dff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #1f2dff in the Color Lab