#040f28 color: Void
#040f28 is rgb(4, 15, 40) in RGB and oklch(17.532% 0.05444 262.2) in OKLCH. Every other format, shade and contrast value is below.
Read as HEX
- Ctrl Vpaste a color anywhere
- Spacerandom color
- Ccopy HEX
- Blue
- Very dark
- Soft
- Cool
- ≈ Midnight blue
- slate-900
- Black 84%
Inside sRGB: displays the same on any screen.
Shades
From lightest to darkest. Click a shade to use it.
Harmonies
Open as paletteRecent
Colors you stop on or copy appear here. They stay on this device.
About #040f28
#040f28 is a soft very dark blue color. In OKLCH it has 17.5% lightness, 0.054 chroma and a hue of 262°.
Inside sRGB: displays the same on any screen.
White text on it reaches 19.02:1 contrast and black text 1.1:1, so white text reads better.
The closest named color is Void (#050d25). In Tailwind CSS the closest color is slate-900.
Lighter: #040f28 mixed with white
Darker: #040f28 mixed with black
Calmer: #040f28 with less saturation
Similar named colors
Colors that go with #040f28
Questions about #040f28
What color is #040f28?
#040f28 is soft very dark blue. The closest named color is Void. In RGB it is rgb(4, 15, 40), in HSL hsl(221.67, 81.82%, 8.63%) and in OKLCH oklch(17.532% 0.05444 262.2).
What colors go well with #040f28?
The complementary color of #040f28 is #1c0d00. For a calmer combination use the analogous colors #001324 and #120a26. The triadic partners are #240506 and #021601.
Is white or black text more readable on #040f28?
White text reads better on #040f28: white gives a contrast ratio of 19.02:1 and black gives 1.1:1. WCAG AA asks for at least 4.5:1 for body text.
Is #040f28 a warm or cool color?
#040f28 is a cool color. In OKLCH its hue is 262 degrees, its lightness 17.5% and its chroma 0.054.