Nerdulator> put something in

Recognised as Colour

#040262

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

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

Colour values

#040262#040262
HEX#040262
RGBrgb(4, 2, 98)
RGB (0–1)0.0157, 0.0078, 0.3843
RGB percentages1.6%, 0.8%, 38.4%
HSLhsl(241.2, 96%, 19.6%)
HSV / HSBhsv(241.2, 98%, 38.4%)
CMYK95.9%, 98%, 0%, 61.6%naive device-independent conversion; real print needs an ICC profile
24-bit integer262,754
CSS custom property--colour: #040262;

Brightness & contrast

Relative luminance0.00951WCAG 2.x, 0 is black and 1 is white
Perceived brightness33.2 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 17.64:1
Contrast with white17.64:1WCAG normal text: AAA
Contrast with black1.19:1WCAG normal text: Fail
Greyscale equivalent#090909
Inverted#FBFD9D

Colour vision & accessibility

Protanopia#001E64no red cones; affects about 1% of men; ΔE 19.8 from the original
Deuteranopia#001361no green cones; the most common form, about 1% of men; ΔE 11.9 from the original
Tritanopia#002536no blue cones; rare, and affects men and women equally; ΔE 57.8 from the original
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text17.64:1WCAG large text: AAA
Contrast with black, large text1.19:1WCAG large text: Fail

Named colours

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

Colour harmonies

Complementary#606202
Analogous#023062, #340262
Triadic#620402, #026204
Split complementary#623402, #306202
Tetradic#620230, #606202, #026234

Tints, shades & saturation

Lighter +40%#3935FB
Lighter +30%#0A05F8
Lighter +20%#0804C6
Lighter +10%#060394
Darker −10%#020130
Darker −20%#000000
Darker −30%#000000
Darker −40%#000000
More saturated +25%#020064
Less saturated −25%#100F56

Channel breakdown

R4
G2
B98
Red4 (1.6%)
Green2 (0.8%)
Blue98 (38.4%)
Hue241.25°
Saturation (HSL)96%
Lightness19.61%
Dominant channelBlue
Hex per channelR 04 · G 02 · 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 “hex 040262” by Nerdulator’s colour engine. Nothing here was retrieved from a database of answers or written by a model.