#2f87db
a balanced, vivid blue · cool · closest name: Dodger Blue
At a glance
Every number on this page in one read: what #2f87db is made of, how bright it looks, and which way it leans.
Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #2f87db |
| RGB | rgb(47, 135, 219) |
| HSL | hsl(209, 71%, 52%) |
| CMYK | cmyk(79%, 38%, 0%, 14%) |
| LAB | lab(55.1 3.3 -50.2) |
| LCH | lch(55.1 50.3 273.8) |
| OKLCH | oklch(0.613 0.152 251.0) |
| Decimal | 3114971 |
| Display P3 | color(display-p3 0.184 0.529 0.859) |
Copy-ready code
/* CSS */
color: #2f87db;
background-color: #2f87db;
/* Tailwind (arbitrary) */
class="text-[#2f87db] bg-[#2f87db]"
/* SCSS */
$brand: #2f87db;
/* SwiftUI */
Color(red: 0.184, green: 0.529, blue: 0.859)
/* Android */
Color.parseColor("#2f87db")
/* Flutter */
Color(0xFF2F87DB)
/* Python / OpenCV (BGR) */
(219, 135, 47)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #2f87db is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #F3F7FC;
--brand-100: #E7F0F8;
--brand-200: #C9DEF2;
--brand-300: #9FC8EE;
--brand-400: #70ACE6;
--brand-500: #2f87db;
--brand-600: #247CD1;
--brand-700: #1E68AE;
--brand-800: #18538B;
--brand-900: #163E65;
--brand-950: #0D273F;
--brand: #2f87db;
--brand-ink: #000000;
}Colors that work with #2f87db
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #2f87db
Derived from its contrast, chroma and lightness — not from taste.
- ✓Headings from 24px up on white
- ✓Text and icons on dark surfaces
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠Small text on white — under 4.5:1
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠Pairing with a same-lightness hue — edges vibrate
Similar colors
One move away from this hex in each direction. Every swatch is its own page.
Color relationships
The wheel positions with their names attached, so you can grab the one you actually need.
| Complementary | #DB832F | Directly opposite — maximum tension | |
| Analogous left | #2FDBD9 | Neighbour, quieter | |
| Analogous right | #2F31DB | Neighbour, quieter | |
| Split-complement 1 | #DB2F31 | Contrast without the clash | |
| Split-complement 2 | #DBD92F | Contrast without the clash | |
| Triadic 1 | #DB2F87 | Even thirds — balanced and loud | |
| Triadic 2 | #87DB2F | Even thirds — balanced and loud | |
| Tetradic | #D92FDB | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#2f87db text on a black background
contrast 5.61:1
#2f87db text on a white background
contrast 3.74:1
CSS3 live lab
The quick brown fox
color: #2f87db;
background-color: #2f87db;
Glowing headline
text-shadow: 2px 2px 8px #2f87db;
Soft neon halo
text-shadow: 0 0 14px rgba(47, 135, 219, 0.45);
box-shadow: 0 12px 32px -8px rgba(47, 135, 219, 0.45);
border: 3px solid #2f87db; background: linear-gradient(135deg, #2f87db, #4A2FDB);
Monochromatic scale
Palettes built from #2f87db
Shades — darker
Tints — lighter
Color harmonies
Nearest named colors
Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.
Closest color with a full write-up: Steel Blue (#4682b4) — ΔE2000 4.4 away, with its history, psychology and brand usage.
#2f87db in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#2f87db, answered
What color is #2f87db?
#2f87db is a balanced vivid blue, closest to Dodger Blue (ΔE2000 4.4). It sits at 209° on the hue wheel with 71% saturation and 52% lightness, which reads as cool.
What is the RGB value of #2f87db?
rgb(47, 135, 219) — 47 red, 135 green and 219 blue out of 255, or 18.4% / 52.9% / 85.9% by channel.
Is #2f87db a light or a dark color?
It is a mid-tone. Relative luminance is 0.2305 and perceived brightness is 51%, so black text on it reaches 5.61:1.
Should I use black or white text on #2f87db?
Black. It scores 5.61:1 against #2f87db, versus 3.74:1 for white — AA at any size.
What is the complementary color of #2f87db?
#DB832F sits directly opposite on the wheel. Softer options are the split-complements #DB2F31 and #DBD92F, which give the same contrast with far less vibration.
What colors go well with #2f87db?
For interface work: #F4F7FA as the surface, #C0D7ED for borders, #4B749B for secondary text, #E0562A as an accent and #13416D for hover and pressed states. For a palette, the analogous pair #2FDBD9 and #2F31DB stays calm, while #DB832F is the loudest partner.
What is #2f87db in CMYK for printing?
cmyk(79%, 38%, 0%, 14%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #2f87db warm or cool?
Cool — it scores 100 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2F48DB; nudged cooler, #2177D0.