Recognised as Colour
#040C28
- #040C28
- Blue
- Dark
- Nearest: Black
#040C28 is a blue with RGB values 4, 12, 40 and HSL 227°, 82%, 9%. It is a dark colour, so white text on it reaches 19.3:1 contrast (AAA for normal text). The nearest named colour is Black.
Colour values
#040C28#040C28
HEX#040C28
RGBrgb(4, 12, 40)
RGB (0–1)0.0157, 0.0471, 0.1569
RGB percentages1.6%, 4.7%, 15.7%
HSLhsl(226.7, 81.8%, 8.6%)
HSV / HSBhsv(226.7, 90%, 15.7%)
CMYK90%, 70%, 0%, 84.3%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer265,256
CSS custom property--colour: #040C28;
Brightness & contrast
Relative luminance0.00442WCAG 2.x, 0 is black and 1 is white
Perceived brightness16.5 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 19.29:1
Contrast with white19.29:1WCAG normal text: AAA
Contrast with black1.09:1WCAG normal text: Fail
Greyscale equivalent#0C0C0C
Inverted#FBF3D7
Colour vision & accessibility
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text19.29:1WCAG large text: AAA
Contrast with black, large text1.09:1WCAG large text: Fail
Named colours
Hue familyblue
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#282004
Analogous#041E28, #0E0428
Triadic#28040C, #0C2804
Split complementary#280E04, #1E2804
Tetradic#28041E, #282004, #04280E
Tints, shades & saturation
Channel breakdown
R4
G12
B40
Red4 (1.6%)
Green12 (4.7%)
Blue40 (15.7%)
Hue226.67°
Saturation (HSL)81.82%
Lightness8.63%
Dominant channelBlue
Hex per channelR 04 · G 0C · B 28
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