Nerdulator> put something in

Recognised as Colour

#040C37

  • #040C37
  • Blue
  • Dark
  • Nearest: Midnight blue

#040C37 is a blue with RGB values 4, 12, 55 and HSL 231°, 86%, 12%. It is a dark colour, so white text on it reaches 18.9:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.

Colour values

#040C37#040C37
HEX#040C37
RGBrgb(4, 12, 55)
RGB (0–1)0.0157, 0.0471, 0.2157
RGB percentages1.6%, 4.7%, 21.6%
HSLhsl(230.6, 86.4%, 11.6%)
HSV / HSBhsv(230.6, 92.7%, 21.6%)
CMYK92.7%, 78.2%, 0%, 78.4%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer265,271
CSS custom property--colour: #040C37;

Brightness & contrast

Relative luminance0.00565WCAG 2.x, 0 is black and 1 is white
Perceived brightness20.8 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 18.87:1
Contrast with white18.87:1WCAG normal text: AAA
Contrast with black1.11:1WCAG normal text: Fail
Greyscale equivalent#0D0D0D
Inverted#FBF3C8

Colour vision & accessibility

Protanopia#001438no red cones; affects about 1% of men; ΔE 6 from the original
Deuteranopia#000F36no green cones; the most common form, about 1% of men; ΔE 3.4 from the original
Tritanopia#001820no blue cones; rare, and affects men and women equally; ΔE 27.7 from the original
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text18.87:1WCAG large text: AAA
Contrast with black, large text1.11:1WCAG large text: Fail

Named colours

Nearest named CSS colourMidnight blue (#191970)ΔE 29.91, a distinctly different colour
Hue familyblue
CSS keyword usableNo exact keyword

Colour harmonies

Complementary#372F04
Analogous#042537, #160437
Triadic#37040C, #0C3704
Split complementary#371604, #253704
Tetradic#370425, #372F04, #043716

Tints, shades & saturation

Lighter +40%#193AEE
Lighter +30%#0E2BC6
Lighter +20%#0B2196
Lighter +10%#071667
Darker −10%#010207
Darker −20%#000000
Darker −30%#000000
Darker −40%#000000
More saturated +25%#00093B
Less saturated −25%#0B1130

Channel breakdown

R4
G12
B55
Red4 (1.6%)
Green12 (4.7%)
Blue55 (21.6%)
Hue230.59°
Saturation (HSL)86.44%
Lightness11.57%
Dominant channelBlue
Hex per channelR 04 · G 0C · B 37

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 “040c37” by Nerdulator’s colour engine. Nothing here was retrieved from a database of answers or written by a model.