Recognised as Colour
#04217B
- #04217B
- Blue
- Dark
- Nearest: Midnight blue
#04217B is a blue with RGB values 4, 33, 123 and HSL 225°, 94%, 25%. It is a dark colour, so white text on it reaches 13.9:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#04217B#04217B
HEX#04217B
RGBrgb(4, 33, 123)
RGB (0–1)0.0157, 0.1294, 0.4824
RGB percentages1.6%, 12.9%, 48.2%
HSLhsl(225.4, 93.7%, 24.9%)
HSV / HSBhsv(225.4, 96.7%, 48.2%)
CMYK96.7%, 73.2%, 0%, 51.8%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer270,715
CSS custom property--colour: #04217B;
Brightness & contrast
Relative luminance0.02544WCAG 2.x, 0 is black and 1 is white
Perceived brightness48.7 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 13.92:1
Contrast with white13.92:1WCAG normal text: AAA
Contrast with black1.51:1WCAG normal text: Fail
Greyscale equivalent#212121
Inverted#FBDE84
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text13.92:1WCAG large text: AAA
Contrast with black, large text1.51:1WCAG large text: Fail
Named colours
Hue familyblue
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#7B5E04
Analogous#045D7B, #23047B
Triadic#7B0421, #217B04
Split complementary#7B2204, #5D7B04
Tetradic#7B045D, #7B5E04, #047B22
Tints, shades & saturation
Channel breakdown
R4
G33
B123
Red4 (1.6%)
Green33 (12.9%)
Blue123 (48.2%)
Hue225.38°
Saturation (HSL)93.7%
Lightness24.9%
Dominant channelBlue
Hex per channelR 04 · G 21 · B 7B
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