Skip to content

#284da4

a dark, vivid blue · cool · closest name: royalblue

RGB
40, 77, 164
HSL
222°, 61%, 40%
CMYK
76, 53, 0, 36
Luminance
0.0844

Every format

HEX#284da4
RGBrgb(40, 77, 164)
HSLhsl(222, 61%, 40%)
CMYKcmyk(76%, 53%, 0%, 36%)
LABlab(34.9 18.5 -50.8)
LCHlch(34.9 54.1 290.0)
OKLCHoklch(0.445 0.147 264.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#284da4 on white: 7.81:1
AA ✓ pass · AA-large · AAA
Aa
#284da4 on black: 2.69:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red15.7%
Green30.2%
Blue64.3%

CMYK percentages

Cyan75.6%
Magenta53.0%
Yellow0.0%
Key (black)35.7%

Color previews

#284da4 text on a black background

contrast 2.69:1

Card sample

#284da4 text on a white background

contrast 7.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #284da4;
Background color
Panel with #284da4 background
background-color: #284da4;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #284da4;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(40, 77, 164, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(40, 77, 164, 0.45);
Border & gradient
Gradient panel
border: 3px solid #284da4;
background: linear-gradient(135deg, #284da4, #5628A4);

Monochromatic scale

Palettes built from #284da4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #284da4 in the Color Lab