Skip to content

#1f2fdf

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

RGB
31, 47, 223
HSL
235°, 76%, 50%
CMYK
86, 79, 0, 13
Luminance
0.0765

Every format

HEX#1f2fdf
RGBrgb(31, 47, 223)
HSLhsl(235, 76%, 50%)
CMYKcmyk(86%, 79%, 0%, 13%)
LABlab(33.2 57.3 -88.1)
LCHlch(33.2 105.1 303.0)
OKLCHoklch(0.449 0.256 267.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1f2fdf on white: 8.30:1
AA ✓ pass · AA-large · AAA
Aa
#1f2fdf on black: 2.53:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.2%
Green18.4%
Blue87.5%

CMYK percentages

Cyan86.1%
Magenta78.9%
Yellow0.0%
Key (black)12.5%

Color previews

#1f2fdf text on a black background

contrast 2.53:1

Card sample

#1f2fdf text on a white background

contrast 8.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #1f2fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #1f2fdf in the Color Lab