#297fdf
a balanced, vivid blue · cool · closest name: Steel Blue
At a glance
Every number on this page in one read: what #297fdf 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 | #297fdf |
| RGB | rgb(41, 127, 223) |
| HSL | hsl(212, 74%, 52%) |
| CMYK | cmyk(82%, 43%, 0%, 13%) |
| LAB | lab(52.9 9.1 -56.0) |
| LCH | lch(52.9 56.7 279.2) |
| OKLCH | oklch(0.596 0.167 254.4) |
| Decimal | 2719711 |
| Display P3 | color(display-p3 0.161 0.498 0.875) |
Copy-ready code
/* CSS */
color: #297fdf;
background-color: #297fdf;
/* Tailwind (arbitrary) */
class="text-[#297fdf] bg-[#297fdf]"
/* SCSS */
$brand: #297fdf;
/* SwiftUI */
Color(red: 0.161, green: 0.498, blue: 0.875)
/* Android */
Color.parseColor("#297fdf")
/* Flutter */
Color(0xFF297FDF)
/* Python / OpenCV (BGR) */
(223, 127, 41)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. #297fdf 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: #F3F7FC;
--brand-100: #E7EFF9;
--brand-200: #C8DDF3;
--brand-300: #9DC5F0;
--brand-400: #6DA8E9;
--brand-500: #3C8AE2;
--brand-600: #297fdf;
--brand-700: #1B62B1;
--brand-800: #154E8E;
--brand-900: #143B67;
--brand-950: #0C2540;
--brand: #297fdf;
--brand-ink: #000000;
}Colors that work with #297fdf
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 #297fdf
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 | #DF8929 | Directly opposite — maximum tension | |
| Analogous left | #29DADF | Neighbour, quieter | |
| Analogous right | #2E29DF | Neighbour, quieter | |
| Split-complement 1 | #DF2E29 | Contrast without the clash | |
| Split-complement 2 | #DADF29 | Contrast without the clash | |
| Triadic 1 | #DF297F | Even thirds — balanced and loud | |
| Triadic 2 | #7FDF29 | Even thirds — balanced and loud | |
| Tetradic | #DF29DA | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#297fdf text on a black background
contrast 5.20:1
#297fdf text on a white background
contrast 4.04:1
CSS3 live lab
The quick brown fox
color: #297fdf;
background-color: #297fdf;
Glowing headline
text-shadow: 2px 2px 8px #297fdf;
Soft neon halo
text-shadow: 0 0 14px rgba(41, 127, 223, 0.45);
box-shadow: 0 12px 32px -8px rgba(41, 127, 223, 0.45);
border: 3px solid #297fdf; background: linear-gradient(135deg, #297fdf, #4C29DF);
Monochromatic scale
Palettes built from #297fdf
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: Azure (#007fff) — ΔE2000 3.1 away, with its history, psychology and brand usage.
#297fdf 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.
#297fdf, answered
What color is #297fdf?
#297fdf is a balanced vivid blue, closest to Steel Blue (ΔE2000 4.6). It sits at 212° on the hue wheel with 74% saturation and 52% lightness, which reads as cool.
What is the RGB value of #297fdf?
rgb(41, 127, 223) — 41 red, 127 green and 223 blue out of 255, or 16.1% / 49.8% / 87.5% by channel.
Is #297fdf a light or a dark color?
It is a mid-tone. Relative luminance is 0.2098 and perceived brightness is 49%, so black text on it reaches 5.20:1.
Should I use black or white text on #297fdf?
Black. It scores 5.20:1 against #297fdf, versus 4.04:1 for white — AA at any size.
What is the complementary color of #297fdf?
#DF8929 sits directly opposite on the wheel. Softer options are the split-complements #DF2E29 and #DADF29, which give the same contrast with far less vibration.
What colors go well with #297fdf?
For interface work: #F4F7FA as the surface, #C0D5ED for borders, #4B719B for secondary text, #E45924 as an accent and #113D6F for hover and pressed states. For a palette, the analogous pair #29DADF and #2E29DF stays calm, while #DF8929 is the loudest partner.
What is #297fdf in CMYK for printing?
cmyk(82%, 43%, 0%, 13%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #297fdf warm or cool?
Cool — it scores 99 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #293DDF; nudged cooler, #1D72D2.