Recognised as Colour
#400C66
- #400C66
- Violet
- Dark
- Nearest: Midnight blue
#400C66 is a violet with RGB values 64, 12, 102 and HSL 275°, 79%, 22%. It is a dark colour, so white text on it reaches 14.4:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#400C66#400C66
HEX#400C66
RGBrgb(64, 12, 102)
RGB (0–1)0.251, 0.0471, 0.4
RGB percentages25.1%, 4.7%, 40%
HSLhsl(274.7, 78.9%, 22.4%)
HSV / HSBhsv(274.7, 88.2%, 40%)
CMYK37.3%, 88.2%, 0%, 60%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer4,197,478
CSS custom property--colour: #400C66;
Brightness & contrast
Relative luminance0.02312WCAG 2.x, 0 is black and 1 is white
Perceived brightness50 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 14.36:1
Contrast with white14.36:1WCAG normal text: AAA
Contrast with black1.46:1WCAG normal text: Fail
Greyscale equivalent#1E1E1E
Inverted#BFF399
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text14.36:1WCAG large text: AAA
Contrast with black, large text1.46:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#32660C
Analogous#130C66, #660C5F
Triadic#66400C, #0C6640
Split complementary#5F660C, #0C6613
Tetradic#66130C, #32660C, #0C5F66
Tints, shades & saturation
Channel breakdown
R64
G12
B102
Red64 (25.1%)
Green12 (4.7%)
Blue102 (40%)
Hue274.67°
Saturation (HSL)78.95%
Lightness22.35%
Dominant channelBlue
Hex per channelR 40 · G 0C · B 66
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