#040f31 color: Squid’s Ink
#040f31 is rgb(4, 15, 49) in RGB and oklch(18.44% 0.07002 264.774) 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 81%
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 #040f31
#040f31 is a soft very dark blue color. In OKLCH it has 18.4% lightness, 0.07 chroma and a hue of 265°.
Inside sRGB: displays the same on any screen.
White text on it reaches 18.79:1 contrast and black text 1.12:1, so white text reads better.
The closest named color is Squid’s Ink (#041330). In Tailwind CSS the closest color is slate-900.
Lighter: #040f31 mixed with white
Darker: #040f31 mixed with black
Calmer: #040f31 with less saturation
Similar named colors
Colors that go with #040f31
Questions about #040f31
What color is #040f31?
#040f31 is soft very dark blue. The closest named color is Squid’s Ink. In RGB it is rgb(4, 15, 49), in HSL hsl(225.33, 84.91%, 10.39%) and in OKLCH oklch(18.44% 0.07002 264.774).
What colors go well with #040f31?
The complementary color of #040f31 is #1e0f00. For a calmer combination use the analogous colors #00152a and #16092e. The triadic partners are #2b0203 and #001a00.
Is white or black text more readable on #040f31?
White text reads better on #040f31: white gives a contrast ratio of 18.79:1 and black gives 1.12:1. WCAG AA asks for at least 4.5:1 for body text.
Is #040f31 a warm or cool color?
#040f31 is a cool color. In OKLCH its hue is 265 degrees, its lightness 18.4% and its chroma 0.07.