#165dfd
a balanced, electric blue · cool · closest name: Royal Blue
At a glance
Every number on this page in one read: what #165dfd 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 | #165dfd |
| RGB | rgb(22, 93, 253) |
| HSL | hsl(222, 98%, 54%) |
| CMYK | cmyk(91%, 63%, 0%, 1%) |
| LAB | lab(45.8 40.7 -84.4) |
| LCH | lch(45.8 93.7 295.7) |
| OKLCH | oklch(0.548 0.247 263.0) |
| Decimal | 1465853 |
| Display P3 | color(display-p3 0.086 0.365 0.992) |
Copy-ready code
/* CSS */
color: #165dfd;
background-color: #165dfd;
/* Tailwind (arbitrary) */
class="text-[#165dfd] bg-[#165dfd]"
/* SCSS */
$brand: #165dfd;
/* SwiftUI */
Color(red: 0.086, green: 0.365, blue: 0.992)
/* Android */
Color.parseColor("#165dfd")
/* Flutter */
Color(0xFF165DFD)
/* Python / OpenCV (BGR) */
(253, 93, 22)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. #165dfd 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: #F1F5FD;
--brand-100: #E3EBFC;
--brand-200: #C1D3FB;
--brand-300: #90B2FE;
--brand-400: #588BFE;
--brand-500: #165dfd;
--brand-600: #024CF3;
--brand-700: #023FCA;
--brand-800: #0133A2;
--brand-900: #062875;
--brand-950: #041949;
--brand: #165dfd;
--brand-ink: #ffffff;
}Colors that work with #165dfd
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 #165dfd
Derived from its contrast, chroma and lightness — not from taste.
- ✓Body text and links on white
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠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 | #FDB616 | Directly opposite — maximum tension | |
| Analogous left | #16D0FD | Neighbour, quieter | |
| Analogous right | #4316FD | Neighbour, quieter | |
| Split-complement 1 | #FD4316 | Contrast without the clash | |
| Split-complement 2 | #D0FD16 | Contrast without the clash | |
| Triadic 1 | #FD165D | Even thirds — balanced and loud | |
| Triadic 2 | #5DFD16 | Even thirds — balanced and loud | |
| Tetradic | #FD16D0 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#165dfd text on a black background
contrast 4.02:1
#165dfd text on a white background
contrast 5.23:1
CSS3 live lab
The quick brown fox
color: #165dfd;
background-color: #165dfd;
Glowing headline
text-shadow: 2px 2px 8px #165dfd;
Soft neon halo
text-shadow: 0 0 14px rgba(22, 93, 253, 0.45);
box-shadow: 0 12px 32px -8px rgba(22, 93, 253, 0.45);
border: 3px solid #165dfd; background: linear-gradient(135deg, #165dfd, #6916FD);
Monochromatic scale
Palettes built from #165dfd
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: Royal Blue (#4169e1) — ΔE2000 4.7 away, with its history, psychology and brand usage.
#165dfd in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#165dfd, answered
What color is #165dfd?
#165dfd is a balanced electric blue, closest to Royal Blue (ΔE2000 4.7). It sits at 222° on the hue wheel with 98% saturation and 54% lightness, which reads as cool.
What is the RGB value of #165dfd?
rgb(22, 93, 253) — 22 red, 93 green and 253 blue out of 255, or 8.6% / 36.5% / 99.2% by channel.
Is #165dfd a light or a dark color?
It is a dark color. Relative luminance is 0.1509 and perceived brightness is 44%, so white text on it reaches 5.23:1.
Should I use black or white text on #165dfd?
White. It scores 5.23:1 against #165dfd, versus 4.02:1 for black — AA at any size.
What is the complementary color of #165dfd?
#FDB616 sits directly opposite on the wheel. Softer options are the split-complements #FD4316 and #D0FD16, which give the same contrast with far less vibration.
What colors go well with #165dfd?
For interface work: #F4F6FA as the surface, #C0CEED for borders, #4B639B for secondary text, #CC5A00 as an accent and #01287E for hover and pressed states. For a palette, the analogous pair #16D0FD and #4316FD stays calm, while #FDB616 is the loudest partner.
What is #165dfd in CMYK for printing?
cmyk(91%, 63%, 0%, 1%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.
Is #165dfd warm or cool?
Cool — it scores 94 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2416FD; nudged cooler, #005FF9.