Maroon Colors  ·  Color Library

Palettes / Colors / #287DCC

#287DCC — Blue

#287DCC is a blue color we call Blue, closest to the named color RoyalBlue (#4169E1). It belongs to the blue family.

Color name

Closest CSS keyword: royalblue (#4169E1) — not an exact match. CSS royalblue gives you #4169E1, a different color; use #287DCC when you need this exact shade.

Sources: common names follow widely used color-name references; CSS keywords and their hex values follow the CSS Color specification.

#287DCC is a cool blue color associated with trust, calm and professionalism. It is saturated enough to be the accent — buttons, highlights and calls to action — while neutrals do the quiet work around it.

Its strongest partner is its complement #CC7828; it also sits naturally between #28CCCA and #282BCC. In the palettes below you can see it working alongside real color combinations from our collection.

#287DCC · RGB 40, 125, 204

Download PNG swatch SVG

Color values

HEX#287DCC
RGB40, 125, 204
HSL209°, 67%, 48%
HSV209°, 80%, 80%
CMYK80%, 39%, 0%, 20%
XYZ19.11, 19.48, 59.88
Yxy19.48, 0.1941, 0.1978
CIE-Lab51.24, 3.07, -47.92
Hunter Lab44.13, 2.44, -53.95

RGB & CMYK percentages

Red 16% · Green 49% · Blue 80%

Cyan 80% · Magenta 39% · Yellow 0% · Key 20%

CMYK values are unprofiled approximations for screen reference — not a print-proofing guarantee.

Previews

Sample text in #287DCC on black
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sample text in #287DCC on white
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

CSS code for #287DCC

.text { color: #287DCC; }
.background { background-color: #287DCC; }
.border { border: 3px solid #287DCC; }
.text-rgb { color: rgb(40, 125, 204); }
.text-hsl { color: hsl(209, 67%, 48%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #287DCC; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(40, 125, 204, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #287DCC; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(40, 125, 204, 0.8); }

HTML: <p style="color:#287DCC">Text here</p> · <div style="background-color:#287DCC">Div content here</div>

Shades of #287DCC

#2573BB#2166A6#1D5B95#194E80#16446F#13395E#0E2C48#0B2237#071522#030A11

Tints of #287DCC

#378AD7#4C96DC#5DA0DF#72ADE3#88B9E7#9DC6EC#B2D2F0#C3DCF3#D9E9F7#EEF5FC

Tones of #287DCC

#357DC0#407CB5#4C7CA9#577C9E#637B92#6E7B87

Color harmonies

Complementary — #CC7828:

Analogous:

Triadic:

Contrast & accessibility

Against white text4.29:1 AA large only
Against black text4.90:1 AA

Best text color on #287DCC: #000000.

Semi-transparent (opacity) text on #287DCC

Text set with opacity blends into the background, so its real contrast is lower than the solid ratios above. Choose a text color and an opacity to see the blended color and its true ratio:

100%
Sample heading text
Smaller body text shows the effect best.

Blended color: · Contrast against #287DCC: ·

How #287DCC looks with color blindness

Simulated with standard Machado color-vision-deficiency matrices — useful when this color carries meaning in charts, maps or interfaces:

Protanopia · #4D4EB9Deuteranopia · #4842B4Tritanopia · #2CAAA6

Closest design-system colors

The nearest matches in the Tailwind CSS, Material Design and Bootstrap palettes — handy when you need a framework class instead of a raw hex:

Tailwind sky 600 · #0284C7Tailwind blue 600 · #2563EBTailwind cyan 600 · #0891B2

Palettes with a similar color

These palettes use a close neighbour of #287DCC rather than the exact color:

Amber Meadow
#268E27 · #27935B · #3CD3CE · #257CC4
Palette Fff5c2
#FFF5C2 · #F4F27E · #6DB9EF · #3081D0
Velvet Ruby Opal
#6BB11D · #2078C6 · #E458A2 · #DAF0C9
Misty Harbor
#8D4715 · #E1683A · #1F84CC · #A6C8EB
Palette 191d88
#191D88 · #1450A3 · #337CCF · #FFC436
Frozen Monsoon
#B3207A · #A3DE44 · #2488C7 · #E7AED2

Similar colors

The closest colors that actually appear in our palette collection — click any to open its page:

#257CC4#3081D0#2078C6#1F84CC#337CCF#2488C7#1C7DC5#3085C3#2987D7#2F7DDA#1F79BE#3982CB

Browse neighbouring colors

← #287DCB  ·  #287DCD →

Frequently asked questions

What color is #287DCC?

#287DCC is Blue, a blue color (RGB 40, 125, 204). Its closest standard named color is RoyalBlue.

What is the RGB and HSL of #287DCC?

#287DCC is RGB 40, 125, 204 — HSL 209°, 67%, 48% — CMYK 80%, 39%, 0%, 20%.

What colors go with #287DCC?

Its complement is #CC7828; analogous partners are #28CCCA and #282BCC. It also appears in 6+ palettes in our collection.

Can I use #287DCC for text?

Black text on #287DCC has a contrast ratio of 4.90:1 (passes WCAG AA); white text gives 4.29:1.