Recognised as Colour
#04218A
- #04218A
- Blue
- Dark
- Nearest: Midnight blue
#04218A is a blue with RGB values 4, 33, 138 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
#04218A#04218A
HEX#04218A
RGBrgb(4, 33, 138)
RGB (0–1)0.0157, 0.1294, 0.5412
RGB percentages1.6%, 12.9%, 54.1%
HSLhsl(227, 94.4%, 27.8%)
HSV / HSBhsv(227, 97.1%, 54.1%)
CMYK97.1%, 76.1%, 0%, 45.9%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer270,730
CSS custom property--colour: #04218A;
Brightness & contrast
Relative luminance0.02949WCAG 2.x, 0 is black and 1 is white
Perceived brightness53.1 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 13.21:1
Contrast with white13.21:1WCAG normal text: AAA
Contrast with black1.59:1WCAG normal text: Fail
Greyscale equivalent#222222
Inverted#FBDE75
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text13.21:1WCAG large text: AAA
Contrast with black, large text1.59:1WCAG large text: Fail
Named colours
Hue familyblue
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#8A6D04
Analogous#04648A, #2A048A
Triadic#8A0421, #218A04
Split complementary#8A2A04, #648A04
Tetradic#8A0464, #8A6D04, #048A2A
Tints, shades & saturation
Channel breakdown
R4
G33
B138
Red4 (1.6%)
Green33 (12.9%)
Blue138 (54.1%)
Hue227.01°
Saturation (HSL)94.37%
Lightness27.84%
Dominant channelBlue
Hex per channelR 04 · G 21 · B 8A
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