Recognised as Colour
#040261
- #040261
- Blue
- Dark
- Nearest: Midnight blue
#040261 is a blue with RGB values 4, 2, 97 and HSL 241°, 96%, 19%. It is a dark colour, so white text on it reaches 17.7:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#040261#040261
HEX#040261
RGBrgb(4, 2, 97)
RGB (0–1)0.0157, 0.0078, 0.3804
RGB percentages1.6%, 0.8%, 38%
HSLhsl(241.3, 96%, 19.4%)
HSV / HSBhsv(241.3, 97.9%, 38%)
CMYK95.9%, 97.9%, 0%, 62%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer262,753
CSS custom property--colour: #040261;
Brightness & contrast
Relative luminance0.00932WCAG 2.x, 0 is black and 1 is white
Perceived brightness32.9 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 17.7:1
Contrast with white17.7:1WCAG normal text: AAA
Contrast with black1.19:1WCAG normal text: Fail
Greyscale equivalent#090909
Inverted#FBFD9E
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text17.7:1WCAG large text: AAA
Contrast with black, large text1.19:1WCAG large text: Fail
Named colours
Hue familyblue
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#5F6102
Analogous#022F61, #340261
Triadic#610402, #026104
Split complementary#613402, #2F6102
Tetradic#61022F, #5F6102, #026134
Tints, shades & saturation
Channel breakdown
R4
G2
B97
Red4 (1.6%)
Green2 (0.8%)
Blue97 (38%)
Hue241.26°
Saturation (HSL)95.96%
Lightness19.41%
Dominant channelBlue
Hex per channelR 04 · G 02 · B 61
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