Recognised as Colour
#040C4C
- #040C4C
- Blue
- Dark
- Nearest: Midnight blue
#040C4C is a blue with RGB values 4, 12, 76 and HSL 233°, 90%, 16%. It is a dark colour, so white text on it reaches 18.1:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#040C4C#040C4C
HEX#040C4C
RGBrgb(4, 12, 76)
RGB (0–1)0.0157, 0.0471, 0.298
RGB percentages1.6%, 4.7%, 29.8%
HSLhsl(233.3, 90%, 15.7%)
HSV / HSBhsv(233.3, 94.7%, 29.8%)
CMYK94.7%, 84.2%, 0%, 70.2%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer265,292
CSS custom property--colour: #040C4C;
Brightness & contrast
Relative luminance0.00811WCAG 2.x, 0 is black and 1 is white
Perceived brightness27.3 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 18.07:1
Contrast with white18.07:1WCAG normal text: AAA
Contrast with black1.16:1WCAG normal text: Fail
Greyscale equivalent#0F0F0F
Inverted#FBF3B3
Colour vision & accessibility
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text18.07:1WCAG large text: AAA
Contrast with black, large text1.16:1WCAG large text: Fail
Named colours
Hue familyblue
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#4C4404
Analogous#04304C, #20044C
Triadic#4C040C, #0C4C04
Split complementary#4C2004, #304C04
Tetradic#4C0430, #4C4404, #044C20
Tints, shades & saturation
Channel breakdown
R4
G12
B76
Red4 (1.6%)
Green12 (4.7%)
Blue76 (29.8%)
Hue233.33°
Saturation (HSL)90%
Lightness15.69%
Dominant channelBlue
Hex per channelR 04 · G 0C · B 4C
Keep nerding
Every link below is a page Nerdulator can generate from what it already knows about this value.
Harmonies
Similar named colours
Nerdulate something else
Nothing in mind? Surprise me · today’s page