Recognised as Colour
#040C21
- #040C21
- Blue
- Dark
- Nearest: Black
#040C21 is a blue with RGB values 4, 12, 33 and HSL 223°, 78%, 7%. It is a dark colour, so white text on it reaches 19.4:1 contrast (AAA for normal text). The nearest named colour is Black.
Colour values
#040C21#040C21
HEX#040C21
RGBrgb(4, 12, 33)
RGB (0–1)0.0157, 0.0471, 0.1294
RGB percentages1.6%, 4.7%, 12.9%
HSLhsl(223.4, 78.4%, 7.3%)
HSV / HSBhsv(223.4, 87.9%, 12.9%)
CMYK87.9%, 63.6%, 0%, 87.1%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer265,249
CSS custom property--colour: #040C21;
Brightness & contrast
Relative luminance0.00399WCAG 2.x, 0 is black and 1 is white
Perceived brightness14.6 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 19.45:1
Contrast with white19.45:1WCAG normal text: AAA
Contrast with black1.08:1WCAG normal text: Fail
Greyscale equivalent#0C0C0C
Inverted#FBF3DE
Colour vision & accessibility
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text19.45:1WCAG large text: AAA
Contrast with black, large text1.08:1WCAG large text: Fail
Named colours
Hue familyblue
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#211904
Analogous#041B21, #0A0421
Triadic#21040C, #0C2104
Split complementary#210A04, #1B2104
Tetradic#21041B, #211904, #04210A
Tints, shades & saturation
Channel breakdown
R4
G12
B33
Red4 (1.6%)
Green12 (4.7%)
Blue33 (12.9%)
Hue223.45°
Saturation (HSL)78.38%
Lightness7.25%
Dominant channelBlue
Hex per channelR 04 · G 0C · B 21
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