Skip to content

#227fdf

a balanced, vivid blue · cool · closest name: dodgerblue

RGB
34, 127, 223
HSL
211°, 75%, 50%
CMYK
85, 43, 0, 13
Luminance
0.2085

Every format

HEX#227fdf
RGBrgb(34, 127, 223)
HSLhsl(211, 75%, 50%)
CMYKcmyk(85%, 43%, 0%, 13%)
LABlab(52.8 8.5 -56.2)
LCHlch(52.8 56.9 278.6)
OKLCHoklch(0.595 0.168 253.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#227fdf on white: 4.06:1
AA ✗ fail · AA-large · AAA
Aa
#227fdf on black: 5.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red13.3%
Green49.8%
Blue87.5%

CMYK percentages

Cyan84.8%
Magenta43.0%
Yellow0.0%
Key (black)12.5%

Color previews

#227fdf text on a black background

contrast 5.17:1

Card sample

#227fdf text on a white background

contrast 4.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #227fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #227fdf in the Color Lab