Recognised as Colour
#04218B
- #04218B
- Blue
- Dark
- Nearest: Midnight blue
#04218B is a blue with RGB values 4, 33, 139 and HSL 227°, 94%, 28%. It is a dark colour, so white text on it reaches 13.2:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#04218B#04218B
HEX#04218B
RGBrgb(4, 33, 139)
RGB (0–1)0.0157, 0.1294, 0.5451
RGB percentages1.6%, 12.9%, 54.5%
HSLhsl(227.1, 94.4%, 28%)
HSV / HSBhsv(227.1, 97.1%, 54.5%)
CMYK97.1%, 76.3%, 0%, 45.5%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer270,731
CSS custom property--colour: #04218B;
Brightness & contrast
Relative luminance0.02978WCAG 2.x, 0 is black and 1 is white
Perceived brightness53.4 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 13.16:1
Contrast with white13.16:1WCAG normal text: AAA
Contrast with black1.6:1WCAG normal text: Fail
Greyscale equivalent#222222
Inverted#FBDE74
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text13.16:1WCAG large text: AAA
Contrast with black, large text1.6:1WCAG large text: Fail
Named colours
Hue familyblue
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#8B6E04
Analogous#04658B, #2A048B
Triadic#8B0421, #218B04
Split complementary#8B2A04, #658B04
Tetradic#8B0465, #8B6E04, #048B2A
Tints, shades & saturation
Channel breakdown
R4
G33
B139
Red4 (1.6%)
Green33 (12.9%)
Blue139 (54.5%)
Hue227.11°
Saturation (HSL)94.41%
Lightness28.04%
Dominant channelBlue
Hex per channelR 04 · G 21 · B 8B
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