Recognised as Colour
#04227E
- #04227E
- Blue
- Dark
- Nearest: Midnight blue
#04227E is a blue with RGB values 4, 34, 126 and HSL 225°, 94%, 25%. It is a dark colour, so white text on it reaches 13.7:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#04227E#04227E
HEX#04227E
RGBrgb(4, 34, 126)
RGB (0–1)0.0157, 0.1333, 0.4941
RGB percentages1.6%, 13.3%, 49.4%
HSLhsl(225.2, 93.8%, 25.5%)
HSV / HSBhsv(225.2, 96.8%, 49.4%)
CMYK96.8%, 73%, 0%, 50.6%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer270,974
CSS custom property--colour: #04227E;
Brightness & contrast
Relative luminance0.02676WCAG 2.x, 0 is black and 1 is white
Perceived brightness49.9 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 13.68:1
Contrast with white13.68:1WCAG normal text: AAA
Contrast with black1.54:1WCAG normal text: Fail
Greyscale equivalent#222222
Inverted#FBDD81
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text13.68:1WCAG large text: AAA
Contrast with black, large text1.54:1WCAG large text: Fail
Named colours
Hue familyblue
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#7E6004
Analogous#045F7E, #23047E
Triadic#7E0422, #227E04
Split complementary#7E2304, #5F7E04
Tetradic#7E045F, #7E6004, #047E23
Tints, shades & saturation
Channel breakdown
R4
G34
B126
Red4 (1.6%)
Green34 (13.3%)
Blue126 (49.4%)
Hue225.25°
Saturation (HSL)93.85%
Lightness25.49%
Dominant channelBlue
Hex per channelR 04 · G 22 · B 7E
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