#508cd7
a balanced, vivid blue · cool · closest name: Dodger Blue
At a glance
Every number on this page in one read: what #508cd7 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 | #508cd7 |
| RGB | rgb(80, 140, 215) |
| HSL | hsl(213, 63%, 58%) |
| CMYK | cmyk(63%, 35%, 0%, 16%) |
| LAB | lab(57.4 3.6 -44.2) |
| LCH | lch(57.4 44.4 274.7) |
| OKLCH | oklch(0.634 0.130 254.9) |
| Decimal | 5278935 |
| Display P3 | color(display-p3 0.314 0.549 0.843) |
Copy-ready code
/* CSS */
color: #508cd7;
background-color: #508cd7;
/* Tailwind (arbitrary) */
class="text-[#508cd7] bg-[#508cd7]"
/* SCSS */
$brand: #508cd7;
/* SwiftUI */
Color(red: 0.314, green: 0.549, blue: 0.843)
/* Android */
Color.parseColor("#508cd7")
/* Flutter */
Color(0xFF508CD7)
/* Python / OpenCV (BGR) */
(215, 140, 80)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. #508cd7 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: #F4F7FB;
--brand-100: #E8EFF7;
--brand-200: #CCDCF0;
--brand-300: #A4C3EA;
--brand-400: #76A5E0;
--brand-500: #508cd7;
--brand-600: #2E72C7;
--brand-700: #265FA6;
--brand-800: #1E4C85;
--brand-900: #1A3961;
--brand-950: #10243C;
--brand: #508cd7;
--brand-ink: #000000;
}Colors that work with #508cd7
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 #508cd7
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 | #D79B50 | Directly opposite — maximum tension | |
| Analogous left | #50D0D7 | Neighbour, quieter | |
| Analogous right | #5750D7 | Neighbour, quieter | |
| Split-complement 1 | #D75750 | Contrast without the clash | |
| Split-complement 2 | #D0D750 | Contrast without the clash | |
| Triadic 1 | #D7508C | Even thirds — balanced and loud | |
| Triadic 2 | #8CD750 | Even thirds — balanced and loud | |
| Tetradic | #D750D0 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#508cd7 text on a black background
contrast 6.07:1
#508cd7 text on a white background
contrast 3.46:1
CSS3 live lab
The quick brown fox
color: #508cd7;
background-color: #508cd7;
Glowing headline
text-shadow: 2px 2px 8px #508cd7;
Soft neon halo
text-shadow: 0 0 14px rgba(80, 140, 215, 0.45);
box-shadow: 0 12px 32px -8px rgba(80, 140, 215, 0.45);
border: 3px solid #508cd7; background: linear-gradient(135deg, #508cd7, #6E50D7);
Monochromatic scale
Palettes built from #508cd7
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: Cornflower Blue (#6495ed) — ΔE2000 4.6 away, with its history, psychology and brand usage.
#508cd7 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.
#508cd7, answered
What color is #508cd7?
#508cd7 is a balanced vivid blue, closest to Dodger Blue (ΔE2000 4.1). It sits at 213° on the hue wheel with 63% saturation and 58% lightness, which reads as cool.
What is the RGB value of #508cd7?
rgb(80, 140, 215) — 80 red, 140 green and 215 blue out of 255, or 31.4% / 54.9% / 84.3% by channel.
Is #508cd7 a light or a dark color?
It is a mid-tone. Relative luminance is 0.2537 and perceived brightness is 54%, so black text on it reaches 6.07:1.
Should I use black or white text on #508cd7?
Black. It scores 6.07:1 against #508cd7, versus 3.46:1 for white — AA at any size.
What is the complementary color of #508cd7?
#D79B50 sits directly opposite on the wheel. Softer options are the split-complements #D75750 and #D0D750, which give the same contrast with far less vibration.
What colors go well with #508cd7?
For interface work: #F4F7FA as the surface, #C0D4ED for borders, #4B6E9B for secondary text, #AA4B22 as an accent and #183B68 for hover and pressed states. For a palette, the analogous pair #50D0D7 and #5750D7 stays calm, while #D79B50 is the loudest partner.
What is #508cd7 in CMYK for printing?
cmyk(63%, 35%, 0%, 16%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #508cd7 warm or cool?
Cool — it scores 98 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #505AD7; nudged cooler, #3980D5.