#062575
a deep, electric blue · cool · closest name: Midnight Blue
At a glance
Every number on this page in one read: what #062575 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 | #062575 |
| RGB | rgb(6, 37, 117) |
| HSL | hsl(223, 90%, 24%) |
| CMYK | cmyk(95%, 68%, 0%, 54%) |
| LAB | lab(18.6 24.1 -48.4) |
| LCH | lch(18.6 54.1 296.5) |
| OKLCH | oklch(0.307 0.141 263.6) |
| Decimal | 402805 |
| Display P3 | color(display-p3 0.024 0.145 0.459) |
Copy-ready code
/* CSS */
color: #062575;
background-color: #062575;
/* Tailwind (arbitrary) */
class="text-[#062575] bg-[#062575]"
/* SCSS */
$brand: #062575;
/* SwiftUI */
Color(red: 0.024, green: 0.145, blue: 0.459)
/* Android */
Color.parseColor("#062575")
/* Flutter */
Color(0xFF062575)
/* Python / OpenCV (BGR) */
(117, 37, 6)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. #062575 is pinned to step 900; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #F2F5FD;
--brand-100: #E5EBFB;
--brand-200: #C3D2F8;
--brand-300: #94B1FA;
--brand-400: #5F89F7;
--brand-500: #2A62F4;
--brand-600: #0C4AE9;
--brand-700: #0A3EC2;
--brand-800: #08319B;
--brand-900: #062575;
--brand-950: #071846;
--brand: #062575;
--brand-ink: #ffffff;
}Colors that work with #062575
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 #062575
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
- ✓Headers, footers and dark-mode surfaces
- ✓Brand accents, badges and data highlights
- ⚠Text on black or near-black surfaces
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠Black text placed on it
- ⚠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 | #755606 | Directly opposite — maximum tension | |
| Analogous left | #065C75 | Neighbour, quieter | |
| Analogous right | #1E0675 | Neighbour, quieter | |
| Split-complement 1 | #751E06 | Contrast without the clash | |
| Split-complement 2 | #5C7506 | Contrast without the clash | |
| Triadic 1 | #750625 | Even thirds — balanced and loud | |
| Triadic 2 | #257506 | Even thirds — balanced and loud | |
| Tetradic | #75065C | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#062575 text on a black background
contrast 1.53:1
#062575 text on a white background
contrast 13.73:1
CSS3 live lab
The quick brown fox
color: #062575;
background-color: #062575;
Glowing headline
text-shadow: 2px 2px 8px #062575;
Soft neon halo
text-shadow: 0 0 14px rgba(6, 37, 117, 0.45);
box-shadow: 0 12px 32px -8px rgba(6, 37, 117, 0.45);
border: 3px solid #062575; background: linear-gradient(135deg, #062575, #310675);
Monochromatic scale
Palettes built from #062575
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: Midnight Blue (#191970) — ΔE2000 4.4 away, with its history, psychology and brand usage.
#062575 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.
#062575, answered
What color is #062575?
#062575 is a deep electric blue, closest to Midnight Blue (ΔE2000 4.4). It sits at 223° on the hue wheel with 90% saturation and 24% lightness, which reads as cool.
What is the RGB value of #062575?
rgb(6, 37, 117) — 6 red, 37 green and 117 blue out of 255, or 2.4% / 14.5% / 45.9% by channel.
Is #062575 a light or a dark color?
It is a dark color. Relative luminance is 0.0265 and perceived brightness is 19%, so white text on it reaches 13.73:1.
Should I use black or white text on #062575?
White. It scores 13.73:1 against #062575, versus 1.53:1 for black — AAA at any size.
What is the complementary color of #062575?
#755606 sits directly opposite on the wheel. Softer options are the split-complements #751E06 and #5C7506, which give the same contrast with far less vibration.
What colors go well with #062575?
For interface work: #F4F6FA as the surface, #C0CCED for borders, #4B619B for secondary text, #773A04 as an accent and #062679 for hover and pressed states. For a palette, the analogous pair #065C75 and #1E0675 stays calm, while #755606 is the loudest partner.
What is #062575 in CMYK for printing?
cmyk(95%, 68%, 0%, 54%). 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 #062575 warm or cool?
Cool — it scores 93 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #100675; nudged cooler, #053276.