#080f6d
a deep, electric blue · cool · closest name: Midnight Blue
At a glance
Every number on this page in one read: what #080f6d 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 | #080f6d |
| RGB | rgb(8, 15, 109) |
| HSL | hsl(236, 86%, 23%) |
| CMYK | cmyk(93%, 86%, 0%, 57%) |
| LAB | lab(12.6 35.3 -53.1) |
| LCH | lch(12.6 63.7 303.7) |
| OKLCH | oklch(0.262 0.154 267.0) |
| Decimal | 528237 |
| Display P3 | color(display-p3 0.031 0.059 0.427) |
Copy-ready code
/* CSS */
color: #080f6d;
background-color: #080f6d;
/* Tailwind (arbitrary) */
class="text-[#080f6d] bg-[#080f6d]"
/* SCSS */
$brand: #080f6d;
/* SwiftUI */
Color(red: 0.031, green: 0.059, blue: 0.427)
/* Android */
Color.parseColor("#080f6d")
/* Flutter */
Color(0xFF080F6D)
/* Python / OpenCV (BGR) */
(109, 15, 8)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. #080f6d 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: #F2F3FD;
--brand-100: #E5E7FA;
--brand-200: #C5C8F7;
--brand-300: #969DF7;
--brand-400: #626CF3;
--brand-500: #2E3CF0;
--brand-600: #1120E4;
--brand-700: #0E1ABE;
--brand-800: #0B1598;
--brand-900: #080f6d;
--brand-950: #080C45;
--brand: #080f6d;
--brand-ink: #ffffff;
}Colors that work with #080f6d
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 #080f6d
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 | #6D6608 | Directly opposite — maximum tension | |
| Analogous left | #08416D | Neighbour, quieter | |
| Analogous right | #33086D | Neighbour, quieter | |
| Split-complement 1 | #6D3308 | Contrast without the clash | |
| Split-complement 2 | #416D08 | Contrast without the clash | |
| Triadic 1 | #6D080F | Even thirds — balanced and loud | |
| Triadic 2 | #0F6D08 | Even thirds — balanced and loud | |
| Tetradic | #6D0841 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#080f6d text on a black background
contrast 1.30:1
#080f6d text on a white background
contrast 16.16:1
CSS3 live lab
The quick brown fox
color: #080f6d;
background-color: #080f6d;
Glowing headline
text-shadow: 2px 2px 8px #080f6d;
Soft neon halo
text-shadow: 0 0 14px rgba(8, 15, 109, 0.45);
box-shadow: 0 12px 32px -8px rgba(8, 15, 109, 0.45);
border: 3px solid #080f6d; background: linear-gradient(135deg, #080f6d, #44086D);
Monochromatic scale
Palettes built from #080f6d
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 2.5 away, with its history, psychology and brand usage.
#080f6d 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.
#080f6d, answered
What color is #080f6d?
#080f6d is a deep electric blue, closest to Midnight Blue (ΔE2000 2.5). It sits at 236° on the hue wheel with 86% saturation and 23% lightness, which reads as cool.
What is the RGB value of #080f6d?
rgb(8, 15, 109) — 8 red, 15 green and 109 blue out of 255, or 3.1% / 5.9% / 42.7% by channel.
Is #080f6d a light or a dark color?
It is a dark color. Relative luminance is 0.0150 and perceived brightness is 15%, so white text on it reaches 16.16:1.
Should I use black or white text on #080f6d?
White. It scores 16.16:1 against #080f6d, versus 1.30:1 for black — AAA at any size.
What is the complementary color of #080f6d?
#6D6608 sits directly opposite on the wheel. Softer options are the split-complements #6D3308 and #416D08, which give the same contrast with far less vibration.
What colors go well with #080f6d?
For interface work: #F4F5FA as the surface, #C0C3ED for borders, #4B509B for secondary text, #6F4D06 as an accent and #091077 for hover and pressed states. For a palette, the analogous pair #08416D and #33086D stays calm, while #6D6608 is the loudest partner.
What is #080f6d in CMYK for printing?
cmyk(93%, 86%, 0%, 57%). 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 #080f6d warm or cool?
Cool — it scores 86 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #26086D; nudged cooler, #07296E.