Nerdulator> put something in

Recognised as Colour

#040C62

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

#040C62 is a blue with RGB values 4, 12, 98 and HSL 235°, 92%, 20%. It is a dark colour, so white text on it reaches 17:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.

Colour values

#040C62#040C62
HEX#040C62
RGBrgb(4, 12, 98)
RGB (0–1)0.0157, 0.0471, 0.3843
RGB percentages1.6%, 4.7%, 38.4%
HSLhsl(234.9, 92.2%, 20%)
HSV / HSBhsv(234.9, 95.9%, 38.4%)
CMYK95.9%, 87.8%, 0%, 61.6%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer265,314
CSS custom property--colour: #040C62;

Brightness & contrast

Relative luminance0.01171WCAG 2.x, 0 is black and 1 is white
Perceived brightness34.4 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 17.02:1
Contrast with white17.02:1WCAG normal text: AAA
Contrast with black1.23:1WCAG normal text: Fail
Greyscale equivalent#111111
Inverted#FBF39D

Colour vision & accessibility

Protanopia#002164no red cones; affects about 1% of men; ΔE 16.2 from the original
Deuteranopia#001761no green cones; the most common form, about 1% of men; ΔE 8.9 from the original
Tritanopia#002838no blue cones; rare, and affects men and women equally; ΔE 53.1 from the original
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text17.02:1WCAG large text: AAA
Contrast with black, large text1.23:1WCAG large text: Fail

Named colours

Nearest named CSS colourMidnight blue (#191970)ΔE 5.64, clearly different but related
Hue familyblue
CSS keyword usableNo exact keyword

Colour harmonies

Complementary#625A04
Analogous#043B62, #2B0462
Triadic#62040C, #0C6204
Split complementary#622B04, #3B6204
Tetradic#62043B, #625A04, #04622B

Tints, shades & saturation

Lighter +40%#3B4BF7
Lighter +30%#0A1EF5
Lighter +20%#0818C4
Lighter +10%#061293
Darker −10%#020631
Darker −20%#000000
Darker −30%#000000
Darker −40%#000000
More saturated +25%#000966
Less saturated −25%#111755

Channel breakdown

R4
G12
B98
Red4 (1.6%)
Green12 (4.7%)
Blue98 (38.4%)
Hue234.89°
Saturation (HSL)92.16%
Lightness20%
Dominant channelBlue
Hex per channelR 04 · G 0C · B 62

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