Nerdulator> put something in

Recognised as Colour

#40125A

  • #40125A
  • Violet
  • Dark
  • Nearest: Midnight blue

#40125A is a violet with RGB values 64, 18, 90 and HSL 278°, 67%, 21%. It is a dark colour, so white text on it reaches 14.5:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.

Colour values

#40125A#40125A
HEX#40125A
RGBrgb(64, 18, 90)
RGB (0–1)0.251, 0.0706, 0.3529
RGB percentages25.1%, 7.1%, 35.3%
HSLhsl(278.3, 66.7%, 21.2%)
HSV / HSBhsv(278.3, 80%, 35.3%)
CMYK28.9%, 80%, 0%, 64.7%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer4,199,002
CSS custom property--colour: #40125A;

Brightness & contrast

Relative luminance0.02261WCAG 2.x, 0 is black and 1 is white
Perceived brightness48.4 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 14.46:1
Contrast with white14.46:1WCAG normal text: AAA
Contrast with black1.45:1WCAG normal text: Fail
Greyscale equivalent#212121
Inverted#BFEDA5

Colour vision & accessibility

Protanopia#00285Cno red cones; affects about 1% of men; ΔE 24.7 from the original
Deuteranopia#022A58no green cones; the most common form, about 1% of men; ΔE 27.9 from the original
Tritanopia#3C2335no blue cones; rare, and affects men and women equally; ΔE 33.2 from the original
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text14.46:1WCAG large text: AAA
Contrast with black, large text1.45:1WCAG large text: Fail

Named colours

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

Colour harmonies

Complementary#2C5A12
Analogous#1C125A, #5A1250
Triadic#5A4012, #125A40
Split complementary#505A12, #125A1C
Tetradic#5A1C12, #2C5A12, #12505A

Tints, shades & saturation

Lighter +40%#AE5ADE
Lighter +30%#9A30D5
Lighter +20%#7C23AF
Lighter +10%#5E1B84
Darker −10%#220A30
Darker −20%#040105
Darker −30%#000000
Darker −40%#000000
More saturated +25%#440568
Less saturated −25%#3C204D

Channel breakdown

R64
G18
B90
Red64 (25.1%)
Green18 (7.1%)
Blue90 (35.3%)
Hue278.33°
Saturation (HSL)66.67%
Lightness21.18%
Dominant channelBlue
Hex per channelR 40 · G 12 · B 5A

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