Nerdulator> put something in

Recognised as Colour

#040C3A

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

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

Colour values

#040C3A#040C3A
HEX#040C3A
RGBrgb(4, 12, 58)
RGB (0–1)0.0157, 0.0471, 0.2275
RGB percentages1.6%, 4.7%, 22.7%
HSLhsl(231.1, 87.1%, 12.2%)
HSV / HSBhsv(231.1, 93.1%, 22.7%)
CMYK93.1%, 79.3%, 0%, 77.3%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer265,274
CSS custom property--colour: #040C3A;

Brightness & contrast

Relative luminance0.00594WCAG 2.x, 0 is black and 1 is white
Perceived brightness21.7 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 18.77:1
Contrast with white18.77:1WCAG normal text: AAA
Contrast with black1.12:1WCAG normal text: Fail
Greyscale equivalent#0E0E0E
Inverted#FBF3C5

Colour vision & accessibility

Protanopia#00143Bno red cones; affects about 1% of men; ΔE 6.1 from the original
Deuteranopia#000F39no green cones; the most common form, about 1% of men; ΔE 3.4 from the original
Tritanopia#001921no blue cones; rare, and affects men and women equally; ΔE 30.3 from the original
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text18.77:1WCAG large text: AAA
Contrast with black, large text1.12:1WCAG large text: Fail

Named colours

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

Colour harmonies

Complementary#3A3204
Analogous#04273A, #17043A
Triadic#3A040C, #0C3A04
Split complementary#3A1704, #273A04
Tetradic#3A0427, #3A3204, #043A17

Tints, shades & saturation

Lighter +40%#1B3AEF
Lighter +30%#0E2AC9
Lighter +20%#0B2099
Lighter +10%#07166A
Darker −10%#01020A
Darker −20%#000000
Darker −30%#000000
Darker −40%#000000
More saturated +25%#00093E
Less saturated −25%#0C1132

Channel breakdown

R4
G12
B58
Red4 (1.6%)
Green12 (4.7%)
Blue58 (22.7%)
Hue231.11°
Saturation (HSL)87.1%
Lightness12.16%
Dominant channelBlue
Hex per channelR 04 · G 0C · B 3A

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