Nerdulator> put something in

Recognised as Colour

#040204

  • #040204
  • Magenta
  • Dark
  • Nearest: Black

#040204 is a magenta with RGB values 4, 2, 4 and HSL 300°, 33%, 1%. It is a dark colour, so white text on it reaches 20.7:1 contrast (AAA for normal text). The nearest named colour is Black.

Colour values

#040204#040204
HEX#040204
RGBrgb(4, 2, 4)
RGB (0–1)0.0157, 0.0078, 0.0157
RGB percentages1.6%, 0.8%, 1.6%
HSLhsl(300, 33.3%, 1.2%)
HSV / HSBhsv(300, 50%, 1.6%)
CMYK0%, 50%, 0%, 98.4%naive device-independent conversion; real print needs an ICC profile
24-bit integer262,660
CSS custom property--colour: #040204;

Brightness & contrast

Relative luminance0.00078WCAG 2.x, 0 is black and 1 is white
Perceived brightness3 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 20.68:1
Contrast with white20.68:1WCAG normal text: AAA
Contrast with black1.02:1WCAG normal text: Fail
Greyscale equivalent#030303
Inverted#FBFDFB

Colour vision & accessibility

Protanopia#020204no red cones; affects about 1% of men; ΔE 0.6 from the original
Deuteranopia#020304no green cones; the most common form, about 1% of men; ΔE 0.9 from the original
Tritanopia#040203no blue cones; rare, and affects men and women equally; ΔE 0.4 from the original
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text20.68:1WCAG large text: AAA
Contrast with black, large text1.02:1WCAG large text: Fail

Named colours

Nearest named CSS colourBlack (#000000)ΔE 1.21, below the just-noticeable difference
Hue familymagenta
CSS keyword usableNo exact keyword

Colour harmonies

Complementary#020402
Analogous#030204, #040203
Triadic#040402, #020404
Split complementary#030402, #020403
Tetradic#040302, #020402, #020304

Tints, shades & saturation

Lighter +40%#8C468C
Lighter +30%#6A356A
Lighter +20%#482448
Lighter +10%#261326
Darker −10%#000000
Darker −20%#000000
Darker −30%#000000
Darker −40%#000000
More saturated +25%#050105
Less saturated −25%#030303

Channel breakdown

R4
G2
B4
Red4 (1.6%)
Green2 (0.8%)
Blue4 (1.6%)
Hue300°
Saturation (HSL)33.33%
Lightness1.18%
Dominant channelRed and Blue
Hex per channelR 04 · G 02 · B 04

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