Skip to content

#338ddf

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

RGB
51, 141, 223
HSL
209°, 73%, 54%
CMYK
77, 37, 0, 13
Luminance
0.2508

Every format

HEX#338ddf
RGBrgb(51, 141, 223)
HSLhsl(209, 73%, 54%)
CMYKcmyk(77%, 37%, 0%, 13%)
LABlab(57.1 1.6 -49.2)
LCHlch(57.1 49.2 271.9)
OKLCHoklch(0.630 0.149 249.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#338ddf on white: 3.49:1
AA ✗ fail · AA-large · AAA
Aa
#338ddf on black: 6.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red20.0%
Green55.3%
Blue87.5%

CMYK percentages

Cyan77.1%
Magenta36.8%
Yellow0.0%
Key (black)12.5%

Color previews

#338ddf text on a black background

contrast 6.02:1

Card sample

#338ddf text on a white background

contrast 3.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #338ddf;
Background color
Panel with #338ddf background
background-color: #338ddf;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(51, 141, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 141, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #338ddf;
background: linear-gradient(135deg, #338ddf, #4C33DF);

Monochromatic scale

Palettes built from #338ddf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #338ddf in the Color Lab