Skip to content

#227fff

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

RGB
34, 127, 255
HSL
215°, 100%, 57%
CMYK
87, 50, 0, 0
Luminance
0.2274

Every format

HEX#227fff
RGBrgb(34, 127, 255)
HSLhsl(215, 100%, 57%)
CMYKcmyk(87%, 50%, 0%, 0%)
LABlab(54.8 20.6 -70.8)
LCHlch(54.8 73.7 286.2)
OKLCHoklch(0.617 0.208 258.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#227fff on white: 3.79:1
AA ✗ fail · AA-large · AAA
Aa
#227fff on black: 5.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red13.3%
Green49.8%
Blue100.0%

CMYK percentages

Cyan86.7%
Magenta50.2%
Yellow0.0%
Key (black)0.0%

Color previews

#227fff text on a black background

contrast 5.55:1

Card sample

#227fff text on a white background

contrast 3.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #227fff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #227fff in the Color Lab