Skip to content

#1f2fff

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

RGB
31, 47, 255
HSL
236°, 100%, 56%
CMYK
88, 82, 0, 0
Luminance
0.0954

Every format

HEX#1f2fff
RGBrgb(31, 47, 255)
HSLhsl(236, 100%, 56%)
CMYKcmyk(88%, 82%, 0%, 0%)
LABlab(37.0 67.0 -100.0)
LCHlch(37.0 120.4 303.8)
OKLCHoklch(0.486 0.290 266.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1f2fff on white: 7.22:1
AA ✓ pass · AA-large · AAA
Aa
#1f2fff on black: 2.91:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.2%
Green18.4%
Blue100.0%

CMYK percentages

Cyan87.8%
Magenta81.6%
Yellow0.0%
Key (black)0.0%

Color previews

#1f2fff text on a black background

contrast 2.91:1

Card sample

#1f2fff text on a white background

contrast 7.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #1f2fff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #1f2fff in the Color Lab