Nerdulator> put something in

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

Protanopia#001029no red cones; affects about 1% of men; ΔE 2.8 from the original
Deuteranopia#000C27no green cones; the most common form, about 1% of men; ΔE 1.5 from the original
Tritanopia#001318no blue cones; rare, and affects men and women equally; ΔE 17.1 from the original
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

Nearest named CSS colourBlack (#000000)ΔE 20.15, a distinctly different colour
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

Lighter +40%#1744E1
Lighter +30%#1236B3
Lighter +20%#0D2885
Lighter +10%#091A56
Darker −10%#000000
Darker −20%#000000
Darker −30%#000000
Darker −40%#000000
More saturated +25%#000A2C
Less saturated −25%#0A0F23

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.

Nerdulate something else

Nothing in mind? Surprise me · today’s page

Every value on this page was computed from “040c28” by Nerdulator’s colour engine. Nothing here was retrieved from a database of answers or written by a model.