#0d64df
a balanced, electric blue · cool · closest name: Royal Blue
At a glance
Every number on this page in one read: what #0d64df 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 | #0d64df |
| RGB | rgb(13, 100, 223) |
| HSL | hsl(215, 89%, 46%) |
| CMYK | cmyk(94%, 55%, 0%, 13%) |
| LAB | lab(45.0 24.5 -68.8) |
| LCH | lch(45.0 73.1 289.6) |
| OKLCH | oklch(0.534 0.203 259.4) |
| Decimal | 877791 |
| Display P3 | color(display-p3 0.051 0.392 0.875) |
Copy-ready code
/* CSS */
color: #0d64df;
background-color: #0d64df;
/* Tailwind (arbitrary) */
class="text-[#0d64df] bg-[#0d64df]"
/* SCSS */
$brand: #0d64df;
/* SwiftUI */
Color(red: 0.051, green: 0.392, blue: 0.875)
/* Android */
Color.parseColor("#0d64df")
/* Flutter */
Color(0xFF0D64DF)
/* Python / OpenCV (BGR) */
(223, 100, 13)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. #0d64df is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #F2F6FD;
--brand-100: #E5EEFB;
--brand-200: #C4D9F8;
--brand-300: #95BEF9;
--brand-400: #609EF6;
--brand-500: #2B7EF3;
--brand-600: #0d64df;
--brand-700: #0B57C1;
--brand-800: #09459A;
--brand-900: #0B356F;
--brand-950: #072146;
--brand: #0d64df;
--brand-ink: #ffffff;
}Colors that work with #0d64df
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 #0d64df
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 | #DF880D | Directly opposite — maximum tension | |
| Analogous left | #0DCDDF | Neighbour, quieter | |
| Analogous right | #1F0DDF | Neighbour, quieter | |
| Split-complement 1 | #DF1F0D | Contrast without the clash | |
| Split-complement 2 | #CDDF0D | Contrast without the clash | |
| Triadic 1 | #DF0D64 | Even thirds — balanced and loud | |
| Triadic 2 | #64DF0D | Even thirds — balanced and loud | |
| Tetradic | #DF0DCD | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#0d64df text on a black background
contrast 3.91:1
#0d64df text on a white background
contrast 5.38:1
CSS3 live lab
The quick brown fox
color: #0d64df;
background-color: #0d64df;
Glowing headline
text-shadow: 2px 2px 8px #0d64df;
Soft neon halo
text-shadow: 0 0 14px rgba(13, 100, 223, 0.45);
box-shadow: 0 12px 32px -8px rgba(13, 100, 223, 0.45);
border: 3px solid #0d64df; background: linear-gradient(135deg, #0d64df, #420DDF);
Monochromatic scale
Palettes built from #0d64df
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 3.8 away, with its history, psychology and brand usage.
#0d64df 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.
#0d64df, answered
What color is #0d64df?
#0d64df is a balanced electric blue, closest to Royal Blue (ΔE2000 3.8). It sits at 215° on the hue wheel with 89% saturation and 46% lightness, which reads as cool.
What is the RGB value of #0d64df?
rgb(13, 100, 223) — 13 red, 100 green and 223 blue out of 255, or 5.1% / 39.2% / 87.5% by channel.
Is #0d64df a light or a dark color?
It is a dark color. Relative luminance is 0.1453 and perceived brightness is 42%, so white text on it reaches 5.38:1.
Should I use black or white text on #0d64df?
White. It scores 5.38:1 against #0d64df, versus 3.91:1 for black — AA at any size.
What is the complementary color of #0d64df?
#DF880D sits directly opposite on the wheel. Softer options are the split-complements #DF1F0D and #CDDF0D, which give the same contrast with far less vibration.
What colors go well with #0d64df?
For interface work: #F4F7FA as the surface, #C0D2ED for borders, #4B6C9B for secondary text, #E45208 as an accent and #073678 for hover and pressed states. For a palette, the analogous pair #0DCDDF and #1F0DDF stays calm, while #DF880D is the loudest partner.
What is #0d64df in CMYK for printing?
cmyk(94%, 55%, 0%, 13%). 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 #0d64df warm or cool?
Cool — it scores 97 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #0D17DF; nudged cooler, #095EC9.