Recognised as Colour
#400D4E
- #400D4E
- Violet
- Dark
- Nearest: Midnight blue
#400D4E is a violet with RGB values 64, 13, 78 and HSL 287°, 71%, 18%. It is a dark colour, so white text on it reaches 15.2:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#400D4E#400D4E
HEX#400D4E
RGBrgb(64, 13, 78)
RGB (0–1)0.251, 0.051, 0.3059
RGB percentages25.1%, 5.1%, 30.6%
HSLhsl(287.1, 71.4%, 17.8%)
HSV / HSBhsv(287.1, 83.3%, 30.6%)
CMYK17.9%, 83.3%, 0%, 69.4%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer4,197,710
CSS custom property--colour: #400D4E;
Brightness & contrast
Relative luminance0.01928WCAG 2.x, 0 is black and 1 is white
Perceived brightness44.9 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 15.16:1
Contrast with white15.16:1WCAG normal text: AAA
Contrast with black1.39:1WCAG normal text: Fail
Greyscale equivalent#1D1D1D
Inverted#BFF2B1
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text15.16:1WCAG large text: AAA
Contrast with black, large text1.39:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#1B4E0D
Analogous#1F0D4E, #4E0D3C
Triadic#4E400D, #0D4E40
Split complementary#3B4E0D, #0D4E20
Tetradic#4E200D, #1B4E0D, #0D3B4E
Tints, shades & saturation
Channel breakdown
R64
G13
B78
Red64 (25.1%)
Green13 (5.1%)
Blue78 (30.6%)
Hue287.08°
Saturation (HSL)71.43%
Lightness17.84%
Dominant channelBlue
Hex per channelR 40 · G 0D · B 4E
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