Skip to content

#308fdf

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

RGB
48, 143, 223
HSL
207°, 73%, 53%
CMYK
79, 36, 0, 13
Luminance
0.2560

Every format

HEX#308fdf
RGBrgb(48, 143, 223)
HSLhsl(207, 73%, 53%)
CMYKcmyk(79%, 36%, 0%, 13%)
LABlab(57.6 0.1 -48.4)
LCHlch(57.6 48.4 270.1)
OKLCHoklch(0.634 0.148 248.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#308fdf on white: 3.43:1
AA ✗ fail · AA-large · AAA
Aa
#308fdf on black: 6.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.8%
Green56.1%
Blue87.5%

CMYK percentages

Cyan78.5%
Magenta35.9%
Yellow0.0%
Key (black)12.5%

Color previews

#308fdf text on a black background

contrast 6.12:1

Card sample

#308fdf text on a white background

contrast 3.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #308fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #308fdf in the Color Lab