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
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
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
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.
Harmonies
Similar named colours
Nerdulate something else
Nothing in mind? Surprise me · today’s page