Skip to content

#2f6cff

a balanced, electric blue · cool · closest name: royalblue

RGB
47, 108, 255
HSL
222°, 100%, 59%
CMYK
82, 58, 0, 0
Luminance
0.1855

Every format

HEX#2f6cff
RGBrgb(47, 108, 255)
HSLhsl(222, 100%, 59%)
CMYKcmyk(82%, 58%, 0%, 0%)
LABlab(50.1 33.4 -78.3)
LCHlch(50.1 85.1 293.1)
OKLCHoklch(0.582 0.228 263.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f6cff on white: 4.46:1
AA ✗ fail · AA-large · AAA
Aa
#2f6cff on black: 4.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green42.4%
Blue100.0%

CMYK percentages

Cyan81.6%
Magenta57.6%
Yellow0.0%
Key (black)0.0%

Color previews

#2f6cff text on a black background

contrast 4.71:1

Card sample

#2f6cff text on a white background

contrast 4.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2f6cff;
Background color
Panel with #2f6cff background
background-color: #2f6cff;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 108, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 108, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f6cff;
background: linear-gradient(135deg, #2f6cff, #7D2FFF);

Monochromatic scale

Palettes built from #2f6cff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f6cff in the Color Lab