Recognised as Colour
#40155C
- #40155C
- Violet
- Dark
- Nearest: Midnight blue
#40155C is a violet with RGB values 64, 21, 92 and HSL 276°, 63%, 22%. It is a dark colour, so white text on it reaches 14.2:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#40155C#40155C
HEX#40155C
RGBrgb(64, 21, 92)
RGB (0–1)0.251, 0.0824, 0.3608
RGB percentages25.1%, 8.2%, 36.1%
HSLhsl(276.3, 62.8%, 22.2%)
HSV / HSBhsv(276.3, 77.2%, 36.1%)
CMYK30.4%, 77.2%, 0%, 63.9%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer4,199,772
CSS custom property--colour: #40155C;
Brightness & contrast
Relative luminance0.02399WCAG 2.x, 0 is black and 1 is white
Perceived brightness49.5 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 14.19:1
Contrast with white14.19:1WCAG normal text: AAA
Contrast with black1.48:1WCAG normal text: Fail
Greyscale equivalent#232323
Inverted#BFEAA3
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text14.19:1WCAG large text: AAA
Contrast with black, large text1.48:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#315C15
Analogous#1C155C, #5C1555
Triadic#5C4015, #155C40
Split complementary#555C15, #155C1D
Tetradic#5C1C15, #315C15, #15555C
Tints, shades & saturation
Channel breakdown
R64
G21
B92
Red64 (25.1%)
Green21 (8.2%)
Blue92 (36.1%)
Hue276.34°
Saturation (HSL)62.83%
Lightness22.16%
Dominant channelBlue
Hex per channelR 40 · G 15 · B 5C
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