Recognised as Colour
#040C41
- #040C41
- Blue
- Dark
- Nearest: Midnight blue
#040C41 is a blue with RGB values 4, 12, 65 and HSL 232°, 88%, 14%. It is a dark colour, so white text on it reaches 18.5:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#040C41#040C41
HEX#040C41
RGBrgb(4, 12, 65)
RGB (0–1)0.0157, 0.0471, 0.2549
RGB percentages1.6%, 4.7%, 25.5%
HSLhsl(232.1, 88.4%, 13.5%)
HSV / HSBhsv(232.1, 93.8%, 25.5%)
CMYK93.8%, 81.5%, 0%, 74.5%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer265,281
CSS custom property--colour: #040C41;
Brightness & contrast
Relative luminance0.0067WCAG 2.x, 0 is black and 1 is white
Perceived brightness23.9 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 18.52:1
Contrast with white18.52:1WCAG normal text: AAA
Contrast with black1.13:1WCAG normal text: Fail
Greyscale equivalent#0E0E0E
Inverted#FBF3BE
Colour vision & accessibility
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text18.52:1WCAG large text: AAA
Contrast with black, large text1.13:1WCAG large text: Fail
Named colours
Hue familyblue
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#413904
Analogous#042A41, #1B0441
Triadic#41040C, #0C4104
Split complementary#411A04, #2B4104
Tetradic#41042A, #413904, #04411A
Tints, shades & saturation
Channel breakdown
R4
G12
B65
Red4 (1.6%)
Green12 (4.7%)
Blue65 (25.5%)
Hue232.13°
Saturation (HSL)88.41%
Lightness13.53%
Dominant channelBlue
Hex per channelR 04 · G 0C · B 41
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