Recognised as Colour
#040CB2
- #040CB2
- Blue
- Dark
- Nearest: Medium blue
#040CB2 is a blue with RGB values 4, 12, 178 and HSL 237°, 96%, 36%. It is a dark colour, so white text on it reaches 12.3:1 contrast (AAA for normal text). The nearest named colour is Medium blue.
Colour values
#040CB2#040CB2
HEX#040CB2
RGBrgb(4, 12, 178)
RGB (0–1)0.0157, 0.0471, 0.698
RGB percentages1.6%, 4.7%, 69.8%
HSLhsl(237.2, 95.6%, 35.7%)
HSV / HSBhsv(237.2, 97.8%, 69.8%)
CMYK97.8%, 93.3%, 0%, 30.2%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer265,394
CSS custom property--colour: #040CB2;
Brightness & contrast
Relative luminance0.03503WCAG 2.x, 0 is black and 1 is white
Perceived brightness60.8 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 12.35:1
Contrast with white12.35:1WCAG normal text: AAA
Contrast with black1.7:1WCAG normal text: Fail
Greyscale equivalent#161616
Inverted#FBF34D
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text12.35:1WCAG large text: AAA
Contrast with black, large text1.7:1WCAG large text: Fail
Named colours
Hue familyblue
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#B2AA04
Analogous#0463B2, #5304B2
Triadic#B2040C, #0CB204
Split complementary#B25304, #63B204
Tetradic#B20463, #B2AA04, #04B253
Tints, shades & saturation
Channel breakdown
R4
G12
B178
Red4 (1.6%)
Green12 (4.7%)
Blue178 (69.8%)
Hue237.24°
Saturation (HSL)95.6%
Lightness35.69%
Dominant channelBlue
Hex per channelR 04 · G 0C · B B2
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