Recognised as Colour
#04015B
- #04015B
- Blue
- Dark
- Nearest: Midnight blue
#04015B is a blue with RGB values 4, 1, 91 and HSL 242°, 98%, 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
#04015B#04015B
HEX#04015B
RGBrgb(4, 1, 91)
RGB (0–1)0.0157, 0.0039, 0.3569
RGB percentages1.6%, 0.4%, 35.7%
HSLhsl(242, 97.8%, 18%)
HSV / HSBhsv(242, 98.9%, 35.7%)
CMYK95.6%, 98.9%, 0%, 64.3%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer262,491
CSS custom property--colour: #04015B;
Brightness & contrast
Relative luminance0.00803WCAG 2.x, 0 is black and 1 is white
Perceived brightness30.8 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 18.09:1
Contrast with white18.09:1WCAG normal text: AAA
Contrast with black1.16:1WCAG normal text: Fail
Greyscale equivalent#080808
Inverted#FBFEA4
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text18.09: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#585B01
Analogous#012B5B, #31015B
Triadic#5B0401, #015B04
Split complementary#5B3101, #2B5B01
Tetradic#5B012B, #585B01, #015B31
Tints, shades & saturation
Channel breakdown
R4
G1
B91
Red4 (1.6%)
Green1 (0.4%)
Blue91 (35.7%)
Hue242°
Saturation (HSL)97.83%
Lightness18.04%
Dominant channelBlue
Hex per channelR 04 · G 01 · B 5B
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