Skip to content

#227bff

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

RGB
34, 123, 255
HSL
216°, 100%, 57%
CMYK
87, 52, 0, 0
Luminance
0.2173

Every format

HEX#227bff
RGBrgb(34, 123, 255)
HSLhsl(216, 100%, 57%)
CMYKcmyk(87%, 52%, 0%, 0%)
LABlab(53.7 23.1 -72.5)
LCHlch(53.7 76.1 287.7)
OKLCHoklch(0.609 0.213 259.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#227bff on white: 3.93:1
AA ✗ fail · AA-large · AAA
Aa
#227bff on black: 5.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red13.3%
Green48.2%
Blue100.0%

CMYK percentages

Cyan86.7%
Magenta51.8%
Yellow0.0%
Key (black)0.0%

Color previews

#227bff text on a black background

contrast 5.35:1

Card sample

#227bff text on a white background

contrast 3.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #227bff;
Background color
Panel with #227bff background
background-color: #227bff;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(34, 123, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(34, 123, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #227bff;
background: linear-gradient(135deg, #227bff, #5C22FF);

Monochromatic scale

Palettes built from #227bff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #227bff in the Color Lab