Recognised as Colour
#40177A
- #40177A
- Violet
- Dark
- Nearest: Midnight blue
#40177A is a violet with RGB values 64, 23, 122 and HSL 265°, 68%, 28%. It is a dark colour, so white text on it reaches 13:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#40177A#40177A
HEX#40177A
RGBrgb(64, 23, 122)
RGB (0–1)0.251, 0.0902, 0.4784
RGB percentages25.1%, 9%, 47.8%
HSLhsl(264.8, 68.3%, 28.4%)
HSV / HSBhsv(264.8, 81.1%, 47.8%)
CMYK47.5%, 81.1%, 0%, 52.2%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer4,200,314
CSS custom property--colour: #40177A;
Brightness & contrast
Relative luminance0.03108WCAG 2.x, 0 is black and 1 is white
Perceived brightness56.9 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 12.95:1
Contrast with white12.95:1WCAG normal text: AAA
Contrast with black1.62:1WCAG normal text: Fail
Greyscale equivalent#272727
Inverted#BFE885
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text12.95:1WCAG large text: AAA
Contrast with black, large text1.62:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#517A17
Analogous#171F7A, #72177A
Triadic#7A4017, #177A40
Split complementary#7A7217, #1F7A17
Tetradic#7A171F, #517A17, #177A72
Tints, shades & saturation
Channel breakdown
R64
G23
B122
Red64 (25.1%)
Green23 (9%)
Blue122 (47.8%)
Hue264.85°
Saturation (HSL)68.28%
Lightness28.43%
Dominant channelBlue
Hex per channelR 40 · G 17 · B 7A
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