Recognised as Colour
#400A5F
- #400A5F
- Violet
- Dark
- Nearest: Midnight blue
#400A5F is a violet with RGB values 64, 10, 95 and HSL 278°, 81%, 21%. It is a dark colour, so white text on it reaches 14.7:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#400A5F#400A5F
HEX#400A5F
RGBrgb(64, 10, 95)
RGB (0–1)0.251, 0.0392, 0.3725
RGB percentages25.1%, 3.9%, 37.3%
HSLhsl(278.1, 81%, 20.6%)
HSV / HSBhsv(278.1, 89.5%, 37.3%)
CMYK32.6%, 89.5%, 0%, 62.7%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer4,196,959
CSS custom property--colour: #400A5F;
Brightness & contrast
Relative luminance0.02133WCAG 2.x, 0 is black and 1 is white
Perceived brightness48.1 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 14.72:1
Contrast with white14.72:1WCAG normal text: AAA
Contrast with black1.43:1WCAG normal text: Fail
Greyscale equivalent#1C1C1C
Inverted#BFF5A0
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text14.72:1WCAG large text: AAA
Contrast with black, large text1.43:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#295F0A
Analogous#150A5F, #5F0A54
Triadic#5F400A, #0A5F40
Split complementary#545F0A, #0A5F15
Tetradic#5F150A, #295F0A, #0A545F
Tints, shades & saturation
Channel breakdown
R64
G10
B95
Red64 (25.1%)
Green10 (3.9%)
Blue95 (37.3%)
Hue278.12°
Saturation (HSL)80.95%
Lightness20.59%
Dominant channelBlue
Hex per channelR 40 · G 0A · B 5F
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