Skip to content

#1f02ff

a balanced, electric blue · warm · “blue”

RGB
31, 2, 255
HSL
247°, 100%, 50%
CMYK
88, 99, 0, 0
Luminance
0.0755

Every format

HEX#1f02ff
RGBrgb(31, 2, 255)
HSLhsl(247, 100%, 50%)
CMYKcmyk(88%, 99%, 0%, 0%)
LABlab(33.0 79.1 -106.6)
LCHlch(33.0 132.8 306.6)
OKLCHoklch(0.459 0.308 266.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1f02ff on white: 8.36:1
AA ✓ pass · AA-large · AAA
Aa
#1f02ff on black: 2.51:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.2%
Green0.8%
Blue100.0%

CMYK percentages

Cyan87.8%
Magenta99.2%
Yellow0.0%
Key (black)0.0%

Color previews

#1f02ff text on a black background

contrast 2.51:1

Card sample

#1f02ff text on a white background

contrast 8.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #1f02ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #1f02ff in the Color Lab