Skip to content

#286cc2

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

RGB
40, 108, 194
HSL
214°, 66%, 46%
CMYK
79, 44, 0, 24
Luminance
0.1507

Every format

HEX#286cc2
RGBrgb(40, 108, 194)
HSLhsl(214, 66%, 46%)
CMYKcmyk(79%, 44%, 0%, 24%)
LABlab(45.7 9.8 -51.0)
LCHlch(45.7 51.9 280.9)
OKLCHoklch(0.535 0.151 256.2)

Copy-ready code

/* CSS */
color: #286cc2;
background-color: #286cc2;
/* Tailwind (arbitrary) */
class="text-[#286cc2] bg-[#286cc2]"
/* SCSS */
$brand: #286cc2;
/* SwiftUI */
Color(red: 0.157, green: 0.424, blue: 0.761)
/* Android */
Color.parseColor("#286cc2")

Accessibility — WCAG contrast

Aa
#286cc2 on white: 5.23:1
AA ✓ pass · AA-large · AAA
Aa
#286cc2 on black: 4.01:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red15.7%
Green42.4%
Blue76.1%

CMYK percentages

Cyan79.4%
Magenta44.3%
Yellow0.0%
Key (black)23.9%

Color previews

#286cc2 text on a black background

contrast 4.01:1

Card sample

#286cc2 text on a white background

contrast 5.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #286cc2;
Background color
Panel with #286cc2 background
background-color: #286cc2;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #286cc2;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(40, 108, 194, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(40, 108, 194, 0.45);
Border & gradient
Gradient panel
border: 3px solid #286cc2;
background: linear-gradient(135deg, #286cc2, #4B28C2);

Monochromatic scale

Palettes built from #286cc2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #286cc2 in the Color Lab