Nerdulator> put something in

Recognised as Colour

#040266

  • #040266
  • Blue
  • Dark
  • Nearest: Midnight blue

#040266 is a blue with RGB values 4, 2, 102 and HSL 241°, 96%, 20%. It is a dark colour, so white text on it reaches 17.4:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.

Colour values

#040266#040266
HEX#040266
RGBrgb(4, 2, 102)
RGB (0–1)0.0157, 0.0078, 0.4
RGB percentages1.6%, 0.8%, 40%
HSLhsl(241.2, 96.2%, 20.4%)
HSV / HSBhsv(241.2, 98%, 40%)
CMYK96.1%, 98%, 0%, 60%naive device-independent conversion; real print needs an ICC profile
24-bit integer262,758
CSS custom property--colour: #040266;

Brightness & contrast

Relative luminance0.01029WCAG 2.x, 0 is black and 1 is white
Perceived brightness34.5 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 17.42:1
Contrast with white17.42:1WCAG normal text: AAA
Contrast with black1.21:1WCAG normal text: Fail
Greyscale equivalent#0A0A0A
Inverted#FBFD99

Colour vision & accessibility

Protanopia#001F68no red cones; affects about 1% of men; ΔE 20 from the original
Deuteranopia#001464no green cones; the most common form, about 1% of men; ΔE 12.7 from the original
Tritanopia#002739no blue cones; rare, and affects men and women equally; ΔE 59.3 from the original
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text17.42:1WCAG large text: AAA
Contrast with black, large text1.21:1WCAG large text: Fail

Named colours

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

Colour harmonies

Complementary#646602
Analogous#023266, #360266
Triadic#660402, #026604
Split complementary#663602, #326602
Tetradic#660232, #646602, #026636

Tints, shades & saturation

Lighter +40%#3D39FB
Lighter +30%#0C07FA
Lighter +20%#0804CA
Lighter +10%#060398
Darker −10%#020134
Darker −20%#000002
Darker −30%#000000
Darker −40%#000000
More saturated +25%#020068
Less saturated −25%#100F59

Channel breakdown

R4
G2
B102
Red4 (1.6%)
Green2 (0.8%)
Blue102 (40%)
Hue241.2°
Saturation (HSL)96.15%
Lightness20.39%
Dominant channelBlue
Hex per channelR 04 · G 02 · B 66

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