Recognised as Colour
#040C74
- #040C74
- Blue
- Dark
- Nearest: Midnight blue
#040C74 is a blue with RGB values 4, 12, 116 and HSL 236°, 93%, 24%. It is a dark colour, so white text on it reaches 16:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#040C74#040C74
HEX#040C74
RGBrgb(4, 12, 116)
RGB (0–1)0.0157, 0.0471, 0.4549
RGB percentages1.6%, 4.7%, 45.5%
HSLhsl(235.7, 93.3%, 23.5%)
HSV / HSBhsv(235.7, 96.6%, 45.5%)
CMYK96.6%, 89.7%, 0%, 54.5%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer265,332
CSS custom property--colour: #040C74;
Brightness & contrast
Relative luminance0.0155WCAG 2.x, 0 is black and 1 is white
Perceived brightness40.3 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 16.03:1
Contrast with white16.03:1WCAG normal text: AAA
Contrast with black1.31:1WCAG normal text: Fail
Greyscale equivalent#121212
Inverted#FBF38B
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text16.03:1WCAG large text: AAA
Contrast with black, large text1.31:1WCAG large text: Fail
Named colours
Hue familyblue
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#746C04
Analogous#044474, #340474
Triadic#74040C, #0C7404
Split complementary#743404, #447404
Tetradic#740444, #746C04, #047434
Tints, shades & saturation
Channel breakdown
R4
G12
B116
Red4 (1.6%)
Green12 (4.7%)
Blue116 (45.5%)
Hue235.71°
Saturation (HSL)93.33%
Lightness23.53%
Dominant channelBlue
Hex per channelR 04 · G 0C · B 74
Keep nerding
Every link below is a page Nerdulator can generate from what it already knows about this value.
Nerdulate something else
Nothing in mind? Surprise me · today’s page