Recognised as Colour
#042A97
- #042A97
- Blue
- Dark
- Nearest: Midnight blue
#042A97 is a blue with RGB values 4, 42, 151 and HSL 224°, 95%, 30%. It is a dark colour, so white text on it reaches 11.8:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#042A97#042A97
HEX#042A97
RGBrgb(4, 42, 151)
RGB (0–1)0.0157, 0.1647, 0.5922
RGB percentages1.6%, 16.5%, 59.2%
HSLhsl(224.5, 94.8%, 30.4%)
HSV / HSBhsv(224.5, 97.4%, 59.2%)
CMYK97.4%, 72.2%, 0%, 40.8%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer273,047
CSS custom property--colour: #042A97;
Brightness & contrast
Relative luminance0.03916WCAG 2.x, 0 is black and 1 is white
Perceived brightness60.3 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 11.78:1
Contrast with white11.78:1WCAG normal text: AAA
Contrast with black1.78:1WCAG normal text: Fail
Greyscale equivalent#2A2A2A
Inverted#FBD568
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text11.78:1WCAG large text: AAA
Contrast with black, large text1.78:1WCAG large text: Fail
Named colours
Hue familyblue
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#977104
Analogous#047397, #280497
Triadic#97042A, #2A9704
Split complementary#972804, #749704
Tetradic#970473, #977104, #049728
Tints, shades & saturation
Channel breakdown
R4
G42
B151
Red4 (1.6%)
Green42 (16.5%)
Blue151 (59.2%)
Hue224.49°
Saturation (HSL)94.84%
Lightness30.39%
Dominant channelBlue
Hex per channelR 04 · G 2A · B 97
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