Recognised as Colour
#040259
- #040259
- Blue
- Dark
- Nearest: Midnight blue
#040259 is a blue with RGB values 4, 2, 89 and HSL 241°, 96%, 18%. 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
#040259#040259
HEX#040259
RGBrgb(4, 2, 89)
RGB (0–1)0.0157, 0.0078, 0.349
RGB percentages1.6%, 0.8%, 34.9%
HSLhsl(241.4, 95.6%, 17.8%)
HSV / HSBhsv(241.4, 97.8%, 34.9%)
CMYK95.5%, 97.8%, 0%, 65.1%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer262,745
CSS custom property--colour: #040259;
Brightness & contrast
Relative luminance0.0079WCAG 2.x, 0 is black and 1 is white
Perceived brightness30.2 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 18.13:1
Contrast with white18.13:1WCAG normal text: AAA
Contrast with black1.16:1WCAG normal text: Fail
Greyscale equivalent#090909
Inverted#FBFDA6
Colour vision & accessibility
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text18.13: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#575902
Analogous#022C59, #2F0259
Triadic#590402, #025904
Split complementary#592F02, #2C5902
Tetradic#59022C, #575902, #02592F
Tints, shades & saturation
Channel breakdown
R4
G2
B89
Red4 (1.6%)
Green2 (0.8%)
Blue89 (34.9%)
Hue241.38°
Saturation (HSL)95.6%
Lightness17.84%
Dominant channelBlue
Hex per channelR 04 · G 02 · B 59
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