Skip to content

#2950df

a balanced, vivid blue · warm · closest name: royalblue

RGB
41, 80, 223
HSL
227°, 74%, 52%
CMYK
82, 64, 0, 13
Luminance
0.1154

Every format

HEX#2950df
RGBrgb(41, 80, 223)
HSLhsl(227, 74%, 52%)
CMYKcmyk(82%, 64%, 0%, 13%)
LABlab(40.5 38.9 -76.2)
LCHlch(40.5 85.5 297.0)
OKLCHoklch(0.502 0.221 266.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2950df on white: 6.35:1
AA ✓ pass · AA-large · AAA
Aa
#2950df on black: 3.31:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.1%
Green31.4%
Blue87.5%

CMYK percentages

Cyan81.6%
Magenta64.1%
Yellow0.0%
Key (black)12.5%

Color previews

#2950df text on a black background

contrast 3.31:1

Card sample

#2950df text on a white background

contrast 6.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2950df;
Background color
Panel with #2950df background
background-color: #2950df;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(41, 80, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(41, 80, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2950df;
background: linear-gradient(135deg, #2950df, #7B29DF);

Monochromatic scale

Palettes built from #2950df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2950df in the Color Lab