Recognised as Colour
#40074C
- #40074C
- Violet
- Dark
- Nearest: Midnight blue
#40074C is a violet with RGB values 64, 7, 76 and HSL 290°, 83%, 16%. It is a dark colour, so white text on it reaches 15.5:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#40074C#40074C
HEX#40074C
RGBrgb(64, 7, 76)
RGB (0–1)0.251, 0.0275, 0.298
RGB percentages25.1%, 2.7%, 29.8%
HSLhsl(289.6, 83.1%, 16.3%)
HSV / HSBhsv(289.6, 90.8%, 29.8%)
CMYK15.8%, 90.8%, 0%, 70.2%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer4,196,172
CSS custom property--colour: #40074C;
Brightness & contrast
Relative luminance0.01764WCAG 2.x, 0 is black and 1 is white
Perceived brightness43.7 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 15.52:1
Contrast with white15.52:1WCAG normal text: AAA
Contrast with black1.35:1WCAG normal text: Fail
Greyscale equivalent#181818
Inverted#BFF8B3
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text15.52:1WCAG large text: AAA
Contrast with black, large text1.35:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#134C07
Analogous#1E074C, #4C0735
Triadic#4C4007, #074C40
Split complementary#354C07, #074C1E
Tetradic#4C1E07, #134C07, #07354C
Tints, shades & saturation
Channel breakdown
R64
G7
B76
Red64 (25.1%)
Green7 (2.7%)
Blue76 (29.8%)
Hue289.57°
Saturation (HSL)83.13%
Lightness16.27%
Dominant channelBlue
Hex per channelR 40 · G 07 · B 4C
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